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

install: policy for enabling systemd services and enabling new versions after updates #69

Open
stapelberg opened this issue May 12, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@stapelberg
Copy link
Member

Currently, when installing a new package, any systemd services which that package contains are not automatically enabled. We should offer a knob to make it so.

Also, when updating a package to a newer version, the old version remains enabled in systemd. This is because systemctl enable resolves symlinks to their target, so we end up with e.g.:

/etc/systemd/system/ssh.service -> /usr/lib/systemd/system/../../../openssh-amd64-8.2p1-11/out/lib/systemd/system/ssh.service

Handling symbolic links at all was only added in systemd/systemd#3790, a bunch of places in systemd use O_NOFOLLOW and patching the behavior to link /etc/systemd/system/ssh.service -> /ro/lib/systemd/system/ssh.service seems non-trivial.

This situation is easy to rectify manually (systemctl disable ssh; systemctl enable ssh), but laborious and easy to forget.

@stapelberg stapelberg added the enhancement New feature or request label May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant