* Marco d'Itri <m...@linux.it> [200310 11:23]: > The modern and simple solution is "systemctl mask", as long as you do > not need to care about the 0.6% of systems which do not use systemd. > If you are doing this for your own systems then you obviously know if > you can rely on systemd or not.
I don't believe this is correct, though I could be wrong. I believe policy-rc.d is sufficient for both systemd and sysvinit systems, and that it is necessary for _packages_ that only ship an init script and not a service file, regardless of the init system in use. Can you tell me, A) Does systemctl mask work for packages that do not have a systemd service file when systemd is the init system? B) Can systemctl mask be run on a subdirectory that you are about to chroot into, but have not yet done so? If both these questions are yes, and the system in the chroot is using (will be using) systemd, than systemctl mask should be sufficient. Otherwise I think policy-rc.d is necessary. ...Marvin