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:
parent
671643a9ed
commit
596178e017
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue