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

Update app exit code on config save #274

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

skrashevich
Copy link
Contributor

... to handle "restart: on-failure"

@felipecrs
Copy link
Contributor

felipecrs commented Feb 27, 2023

I have to say I'm against this. Usually services exits with 0 when they signal a graceful restart.

I'd say your docker compose config is wrong for the use case. It should be: always or unless-stopped.

AlexxIT added a commit that referenced this pull request Jun 29, 2023
@AlexxIT AlexxIT merged commit 1c3835f into AlexxIT:master Jun 29, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jun 29, 2023

Thanks! This make sense. But I'll change code to 100. Hass used this code for handeling restart in Windows. Also code 1 should remain a real error.

https://tldp.org/LDP/abs/html/exitcodes.html

@skrashevich skrashevich deleted the fix-exit-code-on-config-save branch July 1, 2023 21:28
@AlexxIT AlexxIT changed the title fix exit code on config save Update app exit code on config save Jul 11, 2023
@AlexxIT AlexxIT added this to the v1.6.0 milestone Jul 11, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jul 11, 2023

felipecrs pushed a commit to felipecrs/go2rtc that referenced this pull request Oct 20, 2023
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

Successfully merging this pull request may close these issues.

3 participants