diff options
author | Koen Kooi <koen@openembedded.org> | 2008-01-07 13:32:38 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-01-07 13:32:38 +0000 |
commit | fa04db1991f2372697d20bd79eb47fdeb784dd69 (patch) | |
tree | 5a1d67fce6fb59256aefefd6ee457d4c18a19e61 /packages/speech-dispatcher/files/speech-dispatcher.init | |
parent | 908e3da2f1abb6ed3214422f9d21bd0b61b6119d (diff) | |
parent | b9563cc443ff9eb0af87cbc48da5c2f37e45305a (diff) |
propagate from branch 'org.openembedded.dev' (head a9234837102809b3f5f82abc11e373c14c1c638b)
to branch 'org.openembedded.dev.avr32' (head a4083d30914efeafacb96396afd63cef1ef01050)
Diffstat (limited to 'packages/speech-dispatcher/files/speech-dispatcher.init')
-rw-r--r-- | packages/speech-dispatcher/files/speech-dispatcher.init | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/packages/speech-dispatcher/files/speech-dispatcher.init b/packages/speech-dispatcher/files/speech-dispatcher.init new file mode 100644 index 0000000000..c3be5d8385 --- /dev/null +++ b/packages/speech-dispatcher/files/speech-dispatcher.init @@ -0,0 +1,42 @@ +#! /bin/sh + + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/bin/speech-dispatcher +PIDFILE=/var/run/speech-dispatcher.pid +NAME=speech-dispatcher +DESC='Speech Dispatcher' +USER=speech-dispatcher + +test -f $DAEMON || exit 0 + +set -e + +case "$1" in + start) + echo "Starting $NAME" + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON + + ;; + stop) + echo "Stopping $NAME" + start-stop-daemon --oknodo --stop --quiet \ + --pidfile $PIDFILE --exec $DAEMON + ;; + restart) + echo "Restarting $NAME" + start-stop-daemon --oknodo --stop --quiet \ + --pidfile $PIDFILE --exec $DAEMON + sleep 3 + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 |