diff options
-rw-r--r-- | network/haproxy/logrotate.example | 2 | ||||
-rw-r--r-- | network/haproxy/rc.haproxy | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/network/haproxy/logrotate.example b/network/haproxy/logrotate.example index 7bc93f8e33..73bb7d4b63 100644 --- a/network/haproxy/logrotate.example +++ b/network/haproxy/logrotate.example @@ -4,6 +4,6 @@ missingok rotate 4 postrotate - /bin/kill -HUP `cat /var/run/syslogd.pid 2>/dev/null` 2>/dev/null || true + /bin/kill -HUP $(cat /var/run/syslogd.pid 2>/dev/null) 2>/dev/null || true endscript } diff --git a/network/haproxy/rc.haproxy b/network/haproxy/rc.haproxy index e19ddf8ca5..167c426d4b 100644 --- a/network/haproxy/rc.haproxy +++ b/network/haproxy/rc.haproxy @@ -33,7 +33,7 @@ stop() { return fi echo "Soft-stopping HAProxy..." - kill -USR1 `cat $PIDFILE` + kill -USR1 $(cat $PIDFILE) # Even with the right permissions the PID file will not be removed... rm -f $PIDFILE } @@ -44,7 +44,7 @@ force_stop() { return fi echo "Hard-stopping HAProxy..." - kill `cat $PIDFILE` + kill $(cat $PIDFILE) # Even with the right permissions the PID file will not be removed... rm -f $PIDFILE } @@ -54,7 +54,7 @@ status() { echo "HAProxy is not running." return fi - PID=`cat $PIDFILE` + PID=$(cat $PIDFILE) if [ -z "$PID" ]; then echo 'PID file is empty! HAProxy does not appear to be running, but there is a stale PID file.' elif kill -0 $PID; then |