Skip to content

Commit b934957

Browse files
committed
Add SID with sidekiq pid
1 parent b1d4621 commit b934957

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

init.d/gitlab

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ DESC="Gitlab service"
2828
check_pid(){
2929
if [ -f $UNICORN_PID ]; then
3030
PID=`cat $UNICORN_PID`
31+
SPID=`cat $SIDEKIQ_PID`
3132
STATUS=`ps aux | grep $PID | grep -v grep | wc -l`
3233
else
3334
STATUS=0
@@ -89,7 +90,7 @@ status() {
8990
check_pid
9091
if [ "$PID" -ne 0 -a "$STATUS" -ne 0 ]; then
9192
echo "$DESC / Unicorn with PID $PID is running."
92-
echo "$DESC / Sidekiq with PID $SIDEKIQ_PID is running."
93+
echo "$DESC / Sidekiq with PID $SPID is running."
9394
else
9495
echo "$DESC is not running."
9596
exit 1

0 commit comments

Comments
 (0)