Skip to content

Commit 3a04d6f

Browse files
zeripathlunny
andauthored
Systemd needs After as well as Require (#15881)
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 #15866 Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
1 parent 41136db commit 3a04d6f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

contrib/systemd/gitea.service

+9
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,19 @@ After=network.target
77
###
88
#
99
#Requires=mysql.service
10+
#After=mysql.service
11+
#
1012
#Requires=mariadb.service
13+
#After=mariadb.service
14+
#
1115
#Requires=postgresql.service
16+
#After=postgresql.service
17+
#
1218
#Requires=memcached.service
19+
#After=memcached.service
20+
#
1321
#Requires=redis.service
22+
#After=redis.service
1423
#
1524
###
1625
# If using socket activation for main http/s

0 commit comments

Comments
 (0)