fully operating for puma

This commit is contained in:
rkaldung 2014-08-13 17:55:42 +02:00
parent 8229e257af
commit 1c038f2cc4

View file

@ -31,8 +31,6 @@ check_daemons() {
PUMA_PID=$(pgrep -F $WEB_SERVER_PID) PUMA_PID=$(pgrep -F $WEB_SERVER_PID)
PUMA_OK=$? PUMA_OK=$?
fi fi
MISC_OK=0
MISC_PID=0
} }
execute() { execute() {
@ -68,7 +66,7 @@ stop() {
restart() { restart() {
cd $APP_ROOT cd $APP_ROOT
check_daemons check_daemons
if [ "$PUMA_OK" -ne 0 -a "$MISC" -ne 0 ]; then if [ "$PUMA_OK" -eq 0 ]; then
echo "Restarting $DESC..." echo "Restarting $DESC..."
kill -USR2 $PUMA_PID kill -USR2 $PUMA_PID
echo "$DESC restarted." echo "$DESC restarted."