mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
tvheadend: fix undefined variable in error print
The variable "$SCRIPTNAME" is undefined; replace with "$0". Also, fix "Stopping" spelling. Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
1b86a60d7a
commit
5400717833
@ -31,7 +31,7 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
printf "Stoping TVHeadend daemon: "
|
printf "Stopping TVHeadend daemon: "
|
||||||
start-stop-daemon -K -q -p ${PIDFILE} -s TERM
|
start-stop-daemon -K -q -p ${PIDFILE} -s TERM
|
||||||
sleep 2
|
sleep 2
|
||||||
if start-stop-daemon -K -q -p ${PIDFILE} -t; then
|
if start-stop-daemon -K -q -p ${PIDFILE} -t; then
|
||||||
@ -46,7 +46,7 @@ case "$1" in
|
|||||||
"${0}" start
|
"${0}" start
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
|
echo "Usage: $0 {start|stop|restart|force-reload}" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user