0

According to https://askubuntu.com/a/19324

systemctl disable SERVICE Turns the service off on the next reboot or on the next stop event. It persists after reboot.

Is it possible to disable a service just for the next boot?

I mean a one-shot disabling.

Name
  • 161
  • (untested) - maybe something along the lines of an /etc/systemd/system/service-name.d/override.conf that clears and then sets ExecStart to /bin/true, then removes itself (the override.conf file)? – Jeff Schaller Jun 25 '21 at 11:36
  • I think that systemctl stop service will stop the service untill the next boot or the next systemctl start service command as you wish. – CrazyTux Jun 25 '21 at 20:38

0 Answers0