aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network/cherokee/rc.cherokee8
1 files changed, 4 insertions, 4 deletions
diff --git a/network/cherokee/rc.cherokee b/network/cherokee/rc.cherokee
index 381c011c03162..ef60f0c9fdb9c 100644
--- a/network/cherokee/rc.cherokee
+++ b/network/cherokee/rc.cherokee
@@ -33,7 +33,7 @@ case "$1" in
stop)
echo "Stopping $NAME web server..."
if [ -f $PIDFILE ]; then
- PID=`cat $PIDFILE`
+ PID=$(cat $PIDFILE)
kill -s TERM $PID
sleep 4
echo -n "done"
@@ -45,7 +45,7 @@ case "$1" in
reload)
echo "Reloading $NAME configuration"
if [ -f $PIDFILE ]; then
- PID=`cat $PIDFILE`
+ PID=$(cat $PIDFILE)
kill -s HUP $PID
sleep 3
echo -n "done"
@@ -57,7 +57,7 @@ case "$1" in
rotate-logs)
echo "Rotating logs"
if [ -f $PIDFILE ]; then
- PID=`cat $PIDFILE`
+ PID=$(cat $PIDFILE)
kill -s USR2 $PID
sleep 3
echo -n "done"
@@ -69,7 +69,7 @@ case "$1" in
restart)
echo "Restarting the server closing all the opened connections"
if [ -f $PIDFILE ]; then
- PID=`cat $PIDFILE`
+ PID=$(cat $PIDFILE)
kill -s USR1 $PID
sleep 4
echo -n "done"