Skip to content

Commit f3cd856

Browse files
committed
Systemd needs After as well as Require
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 <[email protected]>
1 parent 9f19c2b commit f3cd856

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

contrib/systemd/gitea.service

Lines changed: 9 additions & 0 deletions
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)