#! /bin/sh DSSCONF=/etc/streaming DSSADMIN=/usr/local/sbin/streamingadminserver.pl DSSPID=/var/run/streamingadminserver.pid case $1 in start) if [ -d $DSSCONF -a -x $DSSADMIN ]; then $DSSADMIN fi ;; stop) if [ -f $DSSPID ]; then /bin/kill `/bin/cat $DSSPID` /usr/bin/killall DarwinStreamingServer fi ;; restart) if [ -f $DSSPID ]; then /bin/kill -HUP `/bin/cat $DSSPID` /usr/bin/killall -s HUP DarwinStreamingServer fi ;; * ) echo "usage: streaming {start|stop|restart}" ;; esac