Use Wants= over Requires= in systemd file #15897

Merged
silverwind merged 2 commits from wants into main 2021-05-17 13:09:15 +00:00
silverwind commented 2021-05-16 13:55:14 +00:00 (Migrated from github.com)

Requires= has the behaviour of stopping gitea.service when the database is stopped but not bringing it up again after the database is started again. Use Wants= to define a weak requirement instead, meaning gitea.service will be kept running when the database is stopped, which is not an issue because gitea will just reconnect later on.

Fixes: https://github.com/go-gitea/gitea/issues/15866

`Requires=` has the behaviour of stopping `gitea.service` when the database is stopped but not bringing it up again after the database is started again. Use `Wants=` to define a weak requirement instead, meaning `gitea.service` will be kept running when the database is stopped, which is not an issue because gitea will just reconnect later on. Fixes: https://github.com/go-gitea/gitea/issues/15866
noerw (Migrated from github.com) approved these changes 2021-05-16 14:24:33 +00:00
zeripath approved these changes 2021-05-17 12:04:35 +00:00
lafriks (Migrated from github.com) approved these changes 2021-05-17 13:09:06 +00:00
This repo is archived. You cannot comment on pull requests.
No Milestone
No project
No Assignees
2 Participants
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: lunny/gitea#15897
No description provided.