Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd_unit should create files in /lib/systemd/system so that they can be mask'd #9093

Open
lamont-granquist opened this issue Nov 14, 2019 · 0 comments

Comments

@lamont-granquist
Copy link
Contributor

@lamont-granquist lamont-granquist commented Nov 14, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.