Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 22
    Please also explain how to remove the masked state, if desired. Commented Mar 22, 2017 at 8:02
  • 42
    There is a mask and an unmask command that can be used with systemctl. So just do systemctl unmask name_of_service.service. Commented Mar 23, 2017 at 17:53
  • 3
    doing systemctl unmask name_of_service.service completely removed my service definition file from /etc/systemd/system/, so now I need to add it back again. If it becomes masked again, I'll be stuck in a loop o.O Commented Jun 12, 2018 at 9:22
  • 3
    Hi Eldamir, in /etc/systemd/system are just symbolic links of services. Your should add the *.service file to /lib/systemd/system from where it will be linked to /etc/systemd/system if you enable the service. mask is creating a link to /dev/null and unmask is removing this link from /etc/systemd/system and obviously it makes no difference if someone put a file there. Commented Jun 13, 2018 at 12:26