Browse Source

scripts: fix LSB init scripts so gogs starts when using mysql/postgresql for database (#4561)

pull/4584/head
Credomane Evonguard 8 years ago committed by 无闻
parent
commit
3df25fadfa
  1. 2
      scripts/init/centos/gogs
  2. 4
      scripts/init/debian/gogs
  3. 2
      scripts/init/suse/gogs

2
scripts/init/centos/gogs

@ -12,6 +12,8 @@
# Provides: gogs # Provides: gogs
# Required-Start: $remote_fs $syslog # Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog # Required-Stop: $remote_fs $syslog
# Should-Start: mysql postgresql
# Should-Stop: mysql postgresql
# Default-Start: 2 3 4 5 # Default-Start: 2 3 4 5
# Default-Stop: 0 1 6 # Default-Stop: 0 1 6
# Short-Description: Start gogs at boot time. # Short-Description: Start gogs at boot time.

4
scripts/init/debian/gogs vendored

@ -3,6 +3,8 @@
# Provides: gogs # Provides: gogs
# Required-Start: $syslog $network # Required-Start: $syslog $network
# Required-Stop: $syslog # Required-Stop: $syslog
# Should-Start: mysql postgresql
# Should-Stop: mysql postgresql
# Default-Start: 2 3 4 5 # Default-Start: 2 3 4 5
# Default-Stop: 0 1 6 # Default-Stop: 0 1 6
# Short-Description: A self-hosted Git service written in Go. # Short-Description: A self-hosted Git service written in Go.
@ -122,5 +124,3 @@ case "$1" in
exit 3 exit 3
;; ;;
esac esac
:

2
scripts/init/suse/gogs

@ -9,6 +9,8 @@
# Provides: gogs # Provides: gogs
# Required-Start: $remote_fs # Required-Start: $remote_fs
# Required-Stop: $remote_fs # Required-Stop: $remote_fs
# Should-Start: mysql postgresql
# Should-Stop: mysql postgresql
# Default-Start: 2 3 4 5 # Default-Start: 2 3 4 5
# Default-Stop: 0 1 6 # Default-Stop: 0 1 6
# Short-Description: Start gogs at boot time. # Short-Description: Start gogs at boot time.

Loading…
Cancel
Save