Score:0

How to disable a service only for the next boot?

cn flag

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.

Jeff Schaller avatar
ru flag
(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)?
CrazyTux avatar
us flag
I think that `systemctl stop service` will stop the service untill the next boot or the next `systemctl start service` command as you wish.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.