1

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 1

1

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.

2
  • Ah, I thought "DefaultDependencies" only affects legacy SysV init scripts? Commented Sep 2, 2017 at 19:24
  • 1
    @SPArifSahariWibowo you were mistaken.
    – sourcejedi
    Commented Sep 2, 2017 at 20:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .