diff options
author | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2008-06-30 22:07:04 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2008-06-30 22:07:04 +0000 |
commit | d4f7af436d07c7bc4dd61ac45bff3414a1c12c74 (patch) | |
tree | 049f5903fea26153466932a6b271c49f10b75ba8 /packages/freesmartphone/python-oeventd/oeventd | |
parent | 873ce28c40814edb45f534003450318c6e9b2650 (diff) | |
parent | 7339a83b4095582728045cee92aa215373607caf (diff) |
merge of '08199c52a592fe71e2675200cf618a439d710884'
and '3e5f187370604cf4577025ebc49d90ca52a72d4d'
Diffstat (limited to 'packages/freesmartphone/python-oeventd/oeventd')
-rw-r--r-- | packages/freesmartphone/python-oeventd/oeventd | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/packages/freesmartphone/python-oeventd/oeventd b/packages/freesmartphone/python-oeventd/oeventd new file mode 100644 index 0000000000..8ed467b079 --- /dev/null +++ b/packages/freesmartphone/python-oeventd/oeventd @@ -0,0 +1,40 @@ +#! /bin/sh +# +# odeviced This shell script starts and stops the open event daemon. +# +# chkconfig: 345 90 20 +# description: py-oeventd is the open evend daemon +# processname: python + +PATH=/bin:/usr/bin:/sbin:/usr/sbin +NAME=oeventd + +[ -f /etc/default/rcS ] && . /etc/default/rcS + +case "$1" in + start) + echo -n "Starting open event daemon: " + start-stop-daemon --start --pidfile /var/run/${NAME}.pid --make-pidfile --background -x /usr/bin/oeventd + if [ $? = 0 ]; then + echo "(ok)" + else + echo "(failed)" + fi + ;; + stop) + echo -n "Stopping open event daemon: " + start-stop-daemon --stop --pidfile /var/run/${NAME}.pid --oknodo + rm -f /var/run/${NAME}.pid + echo "(done)" + ;; + restart|force-reload) + $0 stop + $0 start + ;; + *) + echo "Usage: /etc/init.d/oeventd {start|stop|restart|force-reload}" + exit 1 + ;; +esac + +exit 0 |