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

Refresh systemd services on updating #3

Open
tshikaboom opened this issue Dec 3, 2019 · 0 comments
Open

Refresh systemd services on updating #3

tshikaboom opened this issue Dec 3, 2019 · 0 comments

Comments

@tshikaboom
Copy link

It is possible the systemd unit file (/apps/<app>/systemd.service) changes between two updates.
Currently we copy the unit file to /etc only if the service does not exist (first start). It might be a good idea to unconditionally do it and reload the unit files afterwards (systemd daemon-reload), so that we avoid errors with stale unit files if the updated container depends on stuff being set up before it starts.

A starting point for that would be to see what the create_and_start_unit() function does in update.py.

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