aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorzeripath2021-05-16 09:41:37 +0100
committerGitHub2021-05-16 16:41:37 +0800
commit3a04d6f43f429957323dd58d0e720d8d3bf7fee1 (patch)
tree1dbd5b1d70f37dfc31908296afc99471bd73156b /contrib
parent41136db47e3b3222cef6e77347ae6bbe87947038 (diff)
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 <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/systemd/gitea.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/systemd/gitea.service b/contrib/systemd/gitea.service
index ac6a13ec5..cd3b8f9ec 100644
--- a/contrib/systemd/gitea.service
+++ b/contrib/systemd/gitea.service
@@ -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