From 3df25fadfa82aa79635396c979afdb73ef93f652 Mon Sep 17 00:00:00 2001 From: Credomane Evonguard Date: Wed, 14 Jun 2017 19:37:32 -0500 Subject: [PATCH] scripts: fix LSB init scripts so gogs starts when using mysql/postgresql for database (#4561) --- scripts/init/centos/gogs | 2 ++ scripts/init/debian/gogs | 4 ++-- scripts/init/suse/gogs | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/init/centos/gogs b/scripts/init/centos/gogs index 85a8046a8..aeacb8a0d 100644 --- a/scripts/init/centos/gogs +++ b/scripts/init/centos/gogs @@ -12,6 +12,8 @@ # Provides: gogs # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog +# Should-Start: mysql postgresql +# Should-Stop: mysql postgresql # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start gogs at boot time. diff --git a/scripts/init/debian/gogs b/scripts/init/debian/gogs index fb00cd51d..cc241519c 100644 --- a/scripts/init/debian/gogs +++ b/scripts/init/debian/gogs @@ -3,6 +3,8 @@ # Provides: gogs # Required-Start: $syslog $network # Required-Stop: $syslog +# Should-Start: mysql postgresql +# Should-Stop: mysql postgresql # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: A self-hosted Git service written in Go. @@ -122,5 +124,3 @@ case "$1" in exit 3 ;; esac - -: diff --git a/scripts/init/suse/gogs b/scripts/init/suse/gogs index 74c7acbd2..85b291169 100644 --- a/scripts/init/suse/gogs +++ b/scripts/init/suse/gogs @@ -9,6 +9,8 @@ # Provides: gogs # Required-Start: $remote_fs # Required-Stop: $remote_fs +# Should-Start: mysql postgresql +# Should-Stop: mysql postgresql # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start gogs at boot time.