mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
6a13d57d0d
- Move owfs from meta-oe to meta-filesystems - Upgrade owfs to 2.9p1 [YOCTO #4178] Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
60 lines
823 B
Bash
Executable File
60 lines
823 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PATH=/sbin:/bin:/usr/bin
|
|
|
|
DAEMON="owserver"
|
|
|
|
test -f /usr/bin/${DAEMON} || exit 0
|
|
|
|
if test -f /etc/default/${DAEMON} ; then
|
|
. /etc/default/${DAEMON}
|
|
else
|
|
:
|
|
fi
|
|
|
|
if [ "$START_OWSERVER" != "yes" ]
|
|
then
|
|
exit 0
|
|
fi
|
|
|
|
startdaemon(){
|
|
echo -n "Starting ${DAEMON}: "
|
|
start-stop-daemon --start -x /usr/bin/${DAEMON} -- ${CMDLINE} --pid_file /var/run/${DAEMON}.pid
|
|
echo "done"
|
|
}
|
|
|
|
stopdaemon(){
|
|
echo -n "Stopping ${DAEMON}: "
|
|
start-stop-daemon --stop -p /var/run/${DAEMON}.pid
|
|
echo "done"
|
|
}
|
|
|
|
|
|
|
|
case "$1" in
|
|
start)
|
|
startdaemon
|
|
;;
|
|
stop)
|
|
stopdaemon
|
|
;;
|
|
force-reload)
|
|
stopdaemon
|
|
startdaemon
|
|
;;
|
|
restart)
|
|
stopdaemon
|
|
startdaemon
|
|
;;
|
|
reload)
|
|
stopdaemon
|
|
startdaemon
|
|
;;
|
|
*)
|
|
echo "Usage: ${DAEMON} { start | stop | restart | reload }" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|