diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2013-08-14 06:30:59 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-08-16 12:58:31 +0200 |
commit | 6a13d57d0da17ee36749b9d98f745e10dfe26c27 (patch) | |
tree | 09660fa05d9ca188d4dc3d5ace35aa87f478dfee /meta-filesystems/recipes-filesystems/owfs/owfs/owserver | |
parent | 5972198b0f23ca7a248247b0c8a91e565eaa30c2 (diff) | |
download | meta-openembedded-contrib-6a13d57d0da17ee36749b9d98f745e10dfe26c27.tar.gz |
owfs: move to meta-filesystems and upgrade
- 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>
Diffstat (limited to 'meta-filesystems/recipes-filesystems/owfs/owfs/owserver')
-rwxr-xr-x | meta-filesystems/recipes-filesystems/owfs/owfs/owserver | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta-filesystems/recipes-filesystems/owfs/owfs/owserver b/meta-filesystems/recipes-filesystems/owfs/owfs/owserver new file mode 100755 index 0000000000..b69ea53e37 --- /dev/null +++ b/meta-filesystems/recipes-filesystems/owfs/owfs/owserver @@ -0,0 +1,59 @@ +#!/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 |