summaryrefslogtreecommitdiff
path: root/package/gmediaserver
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-30 22:57:30 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-30 22:57:30 +0100
commit0a96e4538fe6552dd75aa939b249030f4cdfd77f (patch)
tree8c998c4ab78ea4b60d433847a9632466b9a814a4 /package/gmediaserver
parent845317b460ee99ad633534cad4de72404af7e30b (diff)
fix startup scripts, fix stop routine
Diffstat (limited to 'package/gmediaserver')
-rw-r--r--package/gmediaserver/files/gmediaserver.init34
1 files changed, 17 insertions, 17 deletions
diff --git a/package/gmediaserver/files/gmediaserver.init b/package/gmediaserver/files/gmediaserver.init
index 1c67e5f40..c9b932249 100644
--- a/package/gmediaserver/files/gmediaserver.init
+++ b/package/gmediaserver/files/gmediaserver.init
@@ -5,22 +5,22 @@
case $1 in
autostop) ;;
- autostart)
- test x"${gmediaserver:-NO}" = x"NO" && exit 0
- exec sh $0 start
- ;;
- start)
- gmediaserver $gmediaserver_flags
- ;;
- stop)
- pkill gmediaserver
- ;;
- restart)
- sh $0 stop
- sh $0 start
- ;;
- *)
- echo "usage: $0 (start | stop | restart)"
- exit 1
+autostart)
+ test x"${gmediaserver:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ /usr/sbin/gmediaserver $gmediaserver_flags
+ ;;
+stop)
+ kill $(pgrep -f /usr/sbin/gmediaserver)
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "usage: $0 (start | stop | restart)"
+ exit 1
esac
exit $?