Is there unit
setting I can change so a service will stay stopped after reboot if it was stopped before reboot?
Currently service starts with OS startup even if it was stopped
CentOS9
Is there unit
setting I can change so a service will stay stopped after reboot if it was stopped before reboot?
Currently service starts with OS startup even if it was stopped
CentOS9
systemctl disable --now whatever.service
Will remove the unit from targets, preventing start at boot. --now
will also stop it.
Default enabled state of a unit can be set in a couple ways. By administrator or distro policy, see systemd.preset
Or, by editing the unit (systemctl edit whatever.service
) and changing the Install section.