multimedia/minidlna: Replaced backtick cmdsub

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Robby Workman 2024-07-14 18:17:06 -05:00 committed by Willy Sudiarto Raharjo
parent 671643a9ed
commit 596178e017
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@ start() {
$CMD $CMD_OPTS
print_status
else
echo "Starting $SNAME: Already running with PID `cat $PIDFILE`!"
echo "Starting $SNAME: Already running with PID $(cat $PIDFILE)!"
fi
fi
}
@ -54,7 +54,7 @@ start() {
stop() {
if [ -e $PIDFILE ]; then
echo -n "Stopping ${SNAME}... "
kill -15 `cat $PIDFILE`
kill -15 $(cat $PIDFILE)
print_status
else
echo "Stopping ${SNAME}: Not running!"
@ -69,9 +69,9 @@ restart() {
status() {
if [ -e $PIDFILE ]; then
echo "$SNAME running with PID `cat $PIDFILE`."
echo "$SNAME running with PID $(cat $PIDFILE)."
else
STAT=`ps -C $NAME -o pid= | wc -l`
STAT=$(ps -C $NAME -o pid= | wc -l)
if [ ${STAT} -ge 1 ]; then
echo "$SNAME is running"
else