aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2024-07-14 18:19:19 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-07-20 08:09:01 +0700
commit288793864585f33616e38e276af0644d254b45df (patch)
tree8bdc51f859c1472989e95da1ce22bc0832ed7bbe /network
parent596178e01749dc800fddd3158abba4a85412220b (diff)
network/cherokee: Replaced backtick cmdsub
Signed-off-by: Robby Workman <rworkman@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-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"