From 1c038f2cc4211dfa3a6548643854f31e5534399f Mon Sep 17 00:00:00 2001 From: rkaldung Date: Wed, 13 Aug 2014 17:55:42 +0200 Subject: [PATCH] fully operating for puma --- script/init.d/zammad | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/script/init.d/zammad b/script/init.d/zammad index 4978722e0..eedc6d9cb 100755 --- a/script/init.d/zammad +++ b/script/init.d/zammad @@ -31,8 +31,6 @@ check_daemons() { PUMA_PID=$(pgrep -F $WEB_SERVER_PID) PUMA_OK=$? fi - MISC_OK=0 - MISC_PID=0 } execute() { @@ -68,7 +66,7 @@ stop() { restart() { cd $APP_ROOT check_daemons - if [ "$PUMA_OK" -ne 0 -a "$MISC" -ne 0 ]; then + if [ "$PUMA_OK" -eq 0 ]; then echo "Restarting $DESC..." kill -USR2 $PUMA_PID echo "$DESC restarted."