diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2024-07-14 18:20:23 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-07-20 08:09:01 +0700 |
commit | 2c9304aedb616a1419e0889e73030021ae0ed2cc (patch) | |
tree | 908ad544285545694e92f30df2c7ca1d12c50841 /network/haproxy | |
parent | 288793864585f33616e38e276af0644d254b45df (diff) |
network/haproxy: Replaced backtick cmdsub
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/haproxy')
-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 7bc93f8e3395f..73bb7d4b63c26 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 e19ddf8ca5295..167c426d4b1c7 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 |