APP_PATH=/var/lib/gitlab
# The PID and LOCK files used by unicorn and sidekiq
-pidfile=$APP_PATH/tmp/pids/sidekiq.pid
+pidfile=$APP_PATH/pids/sidekiq.pid
lockfile=/var/lock/subsys/gitlab-sidekiq
# Get service config - may override defaults
rm -f $lockfile
}
-reload() {
- if [ ! -f $lockfile ]; then
- msg_not_running "GitLab Sidekiq"
- RETVAL=7
- return
- fi
-
- msg_reloading "GitLab Sidekiq"
- killproc <procname> -HUP
- killproc --pidfile $pidfile <procname> -HUP
- RETVAL=$?
-}
-
condrestart() {
if [ ! -f $lockfile ]; then
msg_not_running "GitLab Sidekiq"
condrestart 7
;;
status)
- status --pidfile $pidfile gitlab-sidekiq
+ status --pidfile $pidfile sidekiq
RETVAL=$?
;;
*)
APP_PATH=/var/lib/gitlab
# The PID and LOCK files used by unicorn and sidekiq
-pidfile=$APP_PATH/tmp/pids/unicorn.pid
+pidfile=$APP_PATH/pids/unicorn.pid
lockfile=/var/lock/subsys/gitlab-unicorn
# Get service config - may override defaults
rm -f $lockfile
}
-reload() {
- if [ ! -f $lockfile ]; then
- msg_not_running "GitLab Unicorn"
- RETVAL=7
- return
- fi
-
- msg_reloading "GitLab Unicorn"
- killproc <procname> -HUP
- killproc --pidfile $pidfile <procname> -HUP
- RETVAL=$?
-}
-
condrestart() {
if [ ! -f $lockfile ]; then
msg_not_running "GitLab Unicorn"
condrestart 7
;;
status)
- status --pidfile $pidfile unicorn
+ status --pidfile $pidfile unicorn_rails
RETVAL=$?
;;
*)