Skip to content

Commit

Permalink
scripts: fix LSB init scripts so gogs starts when using mysql/postgre…
Browse files Browse the repository at this point in the history
…sql for database (gogs#4561)
  • Loading branch information
credomane authored and unknwon committed Jun 15, 2017
1 parent 0e6a6bf commit 3df25fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions scripts/init/centos/gogs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions scripts/init/debian/gogs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -122,5 +124,3 @@ case "$1" in
exit 3
;;
esac

:
2 changes: 2 additions & 0 deletions scripts/init/suse/gogs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3df25fa

Please sign in to comment.