7 KODI
=/usr
/lib
/xbmc
/kodi.bin
8 KODI_ARGS
="--standalone -fs -n"
9 PIDFILE
=/var
/run
/kodi.pid
12 printf "Starting Kodi: "
13 start-stop-daemon
-S -q -b -m -p $PIDFILE --exec $BIN -- $KODI $KODI_ARGS
14 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
17 printf "Stopping Kodi: "
18 start-stop-daemon
-K -q -p $PIDFILE
19 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
37 echo "Usage: $0 {start|stop|restart}"