#!/bin/sh # # kissdx: KiSS daemon # # chkconfig: 2345 99 1 # description: This daemon enables a Linux box to stream videos, # mp3 and pictures to a KiSS 15xx DVD/DiVX player. # [ -r /etc/kissdx.conf ] || exit 0 [ -x /usr/sbin/kissdx ] || exit 0 # Source function library. . /etc/rc.d/init.d/functions start() { echo -n $"Starting kissdx: " daemon /usr/sbin/kissdx -d touch /var/lock/subsys/kissdx echo } stop() { echo -n $"Shutting down kissdx: " killproc kissdx rm -f /var/lock/subsys/kissdx echo } # See how we were called. case "$1" in start) start ;; stop) stop ;; restart|reload) stop start ;; condrestart) [ -e /var/lock/subsys/kissdx ] && (stop; start) ;; *) echo $"Usage: $0 {start|stop|restart|reload|condrestart}" exit 1 esac exit 0