no idea wtf initlog program is doing, but it's making daemons kill
themselves when initlog has waited for them to start up.
initlog(1) must die!
fi
msg_starting "GitLab Sidekiq"
+ RC_LOGGING=no
daemon --pidfile $pidfile --user $USER --chdir "$APP_PATH" \
- env RAILS_ENV=$RAILS_ENV \
+ /usr/bin/env RAILS_ENV=$RAILS_ENV \
bin/background_jobs start
RETVAL=$?
[ $RETVAL -eq 0 ] && touch $lockfile
# Stop daemons.
msg_stopping "GitLab Sidekiq"
daemon --pidfile $pidfile --user $USER --chdir "$APP_PATH" \
- env RAILS_ENV=$RAILS_ENV \
+ /usr/bin/env RAILS_ENV=$RAILS_ENV \
bin/background_jobs stop
RETVAL=$?
rm -f $lockfile
fi
msg_starting "GitLab Unicorn"
+ RC_LOGGING=no
daemon --pidfile $pidfile --user $USER --chdir "$APP_PATH" \
- "env RAILS_ENV=$RAILS_ENV bin/web start"
+ /usr/bin/env RAILS_ENV=$RAILS_ENV \
+ bin/web start
RETVAL=$?
[ $RETVAL -eq 0 ] && touch $lockfile
}