Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
systemd_unit should create files in /lib/systemd/system so that they can be mask'd #9093
When /lib/systemd/system exist, it should be used instead of /etc/systemd/service to create unit files, and a symlink should be setup in /etc/systemd/service instead -- so that mask/unmask works properly:
Research needs to be done to determine if all systemd units support this or not? Also there might be some convenient systemd api to just do-the-right-thing when given a file to install as a unit file so we don't have to worry about handling this? Where possible we should call systemctl api's to do things rather than manually wire it up in the filesystem ourselves since this will be more likely to be future-proof.