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

Move systemd unit files from /etc/ to /lib #405

Closed
directionless opened this issue Jan 17, 2019 · 0 comments
Closed

Move systemd unit files from /etc/ to /lib #405

directionless opened this issue Jan 17, 2019 · 0 comments
Assignees

Comments

@directionless
Copy link
Contributor

The current systemd unit files are installed directly to /etc/systemd/system. It would be more reasonable to install them to /lib/systemd/system and then ensure we enable them in postinst.

Caveat -- RHEL might be /usr/lib though it looks like there's sometimes a /lib symlink

https://unix.stackexchange.com/questions/206315/whats-the-difference-between-usr-lib-systemd-system-and-etc-systemd-system has a bunch of background

@directionless directionless self-assigned this Jan 17, 2019
directionless added a commit to directionless/launcher that referenced this issue Jan 17, 2019
This moves the systemd unit file from being installed in /etc/systemd, to being installed in /lib/systemd. It uses the postinst script to enable and start the installed launcher.

Also fills in an prerm script that will unlink the unit file.

Fixes kolide#405
directionless added a commit that referenced this issue Jan 17, 2019
This moves the systemd unit file from being installed in /etc/systemd, to being installed in /lib/systemd. It uses the postinst script to enable and start the installed launcher.

Also fills in an prerm script that will unlink the unit file.

Fixes #405
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant