-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Systemd needs After as well as Require #15881
Systemd needs After as well as Require #15881
Conversation
If the gitea service is stopped because of the db going down it needs an `After=db.service` to ensure it is restarted in addition to the `Requires=db.service` to ensure that the db is started before gitea is started. Fix go-gitea#15866 Signed-off-by: Andrew Thornton <art27@cantab.net>
Codecov Report
@@ Coverage Diff @@
## main #15881 +/- ##
=======================================
Coverage 44.01% 44.02%
=======================================
Files 681 681
Lines 82333 82333
=======================================
+ Hits 36241 36244 +3
+ Misses 40189 40188 -1
+ Partials 5903 5901 -2
Continue to review full report at Codecov.
|
This doesn't fix it for me. I'll wait to see how it behaves with unattended upgrades, but when doing the following manually gitea doesn't come up again:
|
@lafriks @lunny soo.. your approvals mean that you couldn't reproduce what I described in #15881 (comment)? |
Sorry, haven't noticed your reply. I haven't tested it in a real test environment just think it's right in theory and maybe it hasn't fixed #15866 so we can reopen it. |
If the gitea service is stopped because of the db going down it needs an `After=db.service` to ensure it is restarted in addition to the `Requires=db.service` to ensure that the db is started before gitea is started. Fix go-gitea#15866 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
If the Gitea service is stopped because of the db going down
it needs an
After=db.service
to ensure it is restarted inaddition to the
Requires=db.service
to ensure that the dbis started before Gitea is started.
Fix #15866
Signed-off-by: Andrew Thornton art27@cantab.net