Sunday, February 3, 2019

3 levels of switching off systemd service


3 levels of switching off systemd service

1.
 only stop the service, on the next boot it *may* be autostarted
# systemctl stop <service>

2.
Disable autostart on next reboot

# systemctl disable <service>


3.
Disable on steroids :)
  - this is permanent change.
  - user won't be able to start the service either manually or even as a dependency of other units.
# systemdctl mask <service>


Ref:   http://0pointer.de/blog/projects/three-levels-of-off

No comments:

Post a Comment