python: fix disabling the SSL module
[buildroot-gz.git] / package / kodi / S50kodi
blobf00c59c5d92c32e032681c6df486e00ccb6c9757
1 #!/bin/sh
3 # Starts Kodi
6 BIN=/usr/bin/br-kodi
7 KODI=/usr/lib/xbmc/kodi.bin
8 KODI_ARGS="--standalone -fs -n"
9 PIDFILE=/var/run/kodi.pid
11 start() {
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"
16 stop() {
17 printf "Stopping Kodi: "
18 start-stop-daemon -K -q -p $PIDFILE
19 [ $? = 0 ] && echo "OK" || echo "FAIL"
21 restart() {
22 stop
23 start
26 case "$1" in
27 start)
28 start
30 stop)
31 stop
33 restart|reload)
34 restart
37 echo "Usage: $0 {start|stop|restart}"
38 exit 1
39 esac