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

Fix Supervisor container name reference in hassos-supervisor service #727

Merged
merged 1 commit into from
Jun 5, 2020

Conversation

frenck
Copy link
Member

@frenck frenck commented Jun 5, 2020

The systemd service for the hassos-supervisor service used incorrect references to the Supervisor container. This PR addresses that.

@@ -11,9 +11,9 @@ StartLimitBurst=5
Type=simple
Restart=always
RestartSec=5s
ExecStartPre=-/usr/bin/docker stop hassos_supervisor
ExecStartPre=-/usr/bin/docker stop hassio_supervisor
ExecStart=/usr/sbin/hassos-supervisor
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can see how this error has sneaked in, probably because of the name here.

For a future PR, should the docker logic exists in the systemd file or should we add a /usr/sbin/hassos-supervisor --stop to keep all logic in 1 file?

Copy link
Member Author

@frenck frenck Jun 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think having the docker stop right here in ExecStop is a valid case.

The ExecStartPre could be handled by the hassos-supervisor as it does a whole lot of checks already.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it would make sense. It would be nice to have some libs like bashio for OS to share some functions.

@pvizeli pvizeli merged commit 83af273 into dev Jun 5, 2020
@delete-merged-branch delete-merged-branch bot deleted the frenck-2020-0592 branch June 5, 2020 20:14
@pvizeli pvizeli added the REL-4 label Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants