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 upsystemd_unit should create files in /lib/systemd/system so that they can be mask'd #9093
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
https://fedoramagazine.org/systemd-masking-units/
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.