Add redis-server init.d dependency
This commit is contained in:
parent
be5359c695
commit
5d7954b532
|
@ -262,13 +262,13 @@ Create init script in /etc/init.d/gitlab:
|
||||||
|
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: unicorn
|
# Provides: gitlab
|
||||||
# Required-Start: $local_fs $remote_fs $network $syslog
|
# Required-Start: $local_fs $remote_fs $network $syslog redis-server
|
||||||
# Required-Stop: $local_fs $remote_fs $network $syslog
|
# Required-Stop: $local_fs $remote_fs $network $syslog
|
||||||
# Default-Start: 2 3 4 5
|
# Default-Start: 2 3 4 5
|
||||||
# Default-Stop: 0 1 6
|
# Default-Stop: 0 1 6
|
||||||
# Short-Description: starts the unicorn web server
|
# Short-Description: GitLab git repository management
|
||||||
# Description: starts unicorn
|
# Description: GitLab git repository management
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
DAEMON_OPTS="-c /home/gitlab/gitlab/config/unicorn.rb -E production -D"
|
DAEMON_OPTS="-c /home/gitlab/gitlab/config/unicorn.rb -E production -D"
|
||||||
|
@ -323,7 +323,7 @@ Adding permission:
|
||||||
|
|
||||||
When server is rebooted then gitlab must starting:
|
When server is rebooted then gitlab must starting:
|
||||||
|
|
||||||
sudo update-rc.d gitlab defaults
|
sudo insserv gitlab
|
||||||
|
|
||||||
Now you can start/restart/stop gitlab like:
|
Now you can start/restart/stop gitlab like:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue