-
Notifications
You must be signed in to change notification settings - Fork 196
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
Prevent conflicting mender services from running simultaneously. #796
Conversation
Changelog: Fix: `mender-client.service` and the old `mender.service` services can no longer run at the same time. If anyone has both, then `mender.service` should be removed from the system. Signed-off-by: Kristian Amlie <kristian.amlie@northern.tech>
@kacf, Let me know if you want to start the integration pipeline by mentioning me and the command "start pipeline". |
@lluiscampos: This was inspired by this post. However, it may not be quite that simple, because older client releases are still using the old name, and may need to patch this out of the file. However, this caused quite severe breakage, so I reckon it's still worth it. What do you think? Let's never rename the client again... |
@mender-test-bot start pipeline |
Hello 😸 I created a pipeline for you here: Pipeline-318210389 Build Configuration Matrix
|
While the change you submit here is good, I don't really understand how this prevents another user to end up in the same situation. All that it will do is to block
Roger that! |
What it does it prevent them from running at the same time. Either one can run in isolation. However, if both are enabled at boot, then both will fail to start, and it counts as an error from systemd's side. So this is the only thing that this patch changes, you cannot run them at the same time anymore. It does not fix the fact that there may be an old service file in the system, but that was the case before this patch as well. I can see what you mean with "hiding" the issue, but the original issue was quite hidden as well, and the effect was much more severe than it will be after this patch. So we should still be on the lookout for the problem, but at least we have some protection from the worst effects. |
Okey, let's merge it then. Thanks for the discussion. |
Thanks! |
Hello 😸 This PR contains changelog entries. Please, verify the need of backporting it to the following release branches: |
Changelog: Fix:
mender-client.service
and the oldmender.service
services can no longer run at the same time. If anyone has both, then
mender.service
should be removed from the system.Signed-off-by: Kristian Amlie kristian.amlie@northern.tech