Skip to content

Commit

Permalink
Systemd needs After as well as Require
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
zeripath committed May 15, 2021
1 parent 9f19c2b commit f3cd856
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions contrib/systemd/gitea.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,19 @@ After=network.target
###
#
#Requires=mysql.service
#After=mysql.service
#
#Requires=mariadb.service
#After=mariadb.service
#
#Requires=postgresql.service
#After=postgresql.service
#
#Requires=memcached.service
#After=memcached.service
#
#Requires=redis.service
#After=redis.service
#
###
# If using socket activation for main http/s
Expand Down

0 comments on commit f3cd856

Please sign in to comment.