Don't eat error in return code #1

Open
opened 2022-10-24 00:52:29 +00:00 by tangent128 · 0 comments
Owner

main() always returns a 0 exit code, even if an error is encountered that takes down the service; systemd won't restart if Restart=on-failure in this case.

See 2b88d09d0f/src/main.rs (L34-L36)

main() always returns a 0 exit code, even if an error is encountered that takes down the service; systemd won't restart if `Restart=on-failure` in this case. See https://gitea.tropi.us/tangent128/webmetro/src/commit/2b88d09d0f42c9ee7bc609480aa85ad7705bac2f/src/main.rs#L34-L36
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tangent128/webmetro#1
No description provided.