How to change the system-wide default setting of a directives in systemd? For example the DefaultDependencies directive under Unit section by default has the value of yes
, how to set it up the default to no
for all units that don't specifically specify it?
1 Answer
That particular change would break units shipped with systemd and other software. It cannot be controlled by any option in /etc/systemd/system.conf
.
If you are patching all the packages, you are free to also patch and rebuild systemd.
-
Ah, I thought "DefaultDependencies" only affects legacy SysV init scripts? Commented Sep 2, 2017 at 19:24
-
1