Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Warning if (duplicate) unit is already in systemd #1687

Closed
BenjaminHerbert opened this issue Sep 23, 2016 · 2 comments
Closed

Warning if (duplicate) unit is already in systemd #1687

BenjaminHerbert opened this issue Sep 23, 2016 · 2 comments

Comments

@BenjaminHerbert
Copy link

I submitted a changed service file with fleetctl and it was accepted without warning.
Upon starting the unit, I discovered that the old unit was still used. The reason seems to be that in systemd there was a unit with the same name (and old content), which was invoked instead of the file scheduled to fleetctl.

Is it possible to issue a warning or fail the command in such a case?

@dongsupark
Copy link
Contributor

I'm not sure about failing the command, but in theory it would be possible to print out a warning.
Apart from that, in this use case, I think you would probably want to run "fleetctl --replace" to replace the existing unit file with a new one. That option was implemented via #1509 (already in master), which will be included in release v0.13.

@dongsupark
Copy link
Contributor

Aha, "printing a warning" was already addressed by #1560, which is included in release v0.13.0.
So I'm closing this issue. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants