#
# description: Enlightenment sound server
#
# Version:      @(#)esd  0.1  15-Sept-2003  ebricca AT users.sf.net
#
# sichern unter /etc/init.d/esd
#
# CFG=/etc/esound/esd.conf
#

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/esd
NAME=esd
DESC="Enlightenment sound server"
SOUNDDEVICE=/dev/dsp
cmdln="-d $SOUNDDEVICE"
PIDFILE=/var/run/$NAME.pid

test -x $DAEMON || exit 0

set -e

case "$1" in
  start)
        echo -n "Starting $DESC: $NAME"
        start-stop-daemon --start --background --pidfile $PIDFILE --make-pidfile \
                --quiet --exec $DAEMON -- $cmdln
        echo "."
        ;;
  stop)
        echo -n "Stopping $DESC: $NAME "
        start-stop-daemon --stop --quiet --exec $DAEMON
        echo "."
        ;;
  restart)
        #
        #
        $0 stop
        sleep 1
        $0 start
        ;;
  *)
        N=/etc/init.d/$NAME
        # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
        echo "Usage: $N {start|stop|restart}" >&2
        exit 1
        ;;
esac

exit 0

Debian/InstallationPPC/esd (zuletzt geändert am 2007-12-23 22:49:42 durch localhost)