X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=sound%2Fmpdas%2Ffiles%2Fmpdas.init;h=ba64d9519c67190d8f3515b159c80cfc5069b353;hb=82e3dfc52706064f4cc44f5ecdca366fba684d2b;hp=4b8eeb66653fc909e9be917a0b4d089bcd13c9f5;hpb=62e90dde42e48aa03fdad32162804ff3e70d32c0;p=10.03%2Fpackages.git diff --git a/sound/mpdas/files/mpdas.init b/sound/mpdas/files/mpdas.init index 4b8eeb6..ba64d95 100644 --- a/sound/mpdas/files/mpdas.init +++ b/sound/mpdas/files/mpdas.init @@ -1,11 +1,15 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2009 OpenWrt.org +# Copyright (C) 2009-2011 OpenWrt.org + START=94 +SERVICE_DAEMONIZE=1 + start() { - HOME=/root /usr/bin/mpdas -c /etc/mpdasrc & + HOME=/root \ + service_start /usr/bin/mpdas -c /etc/mpdasrc } stop() { - killall mpdas + service_stop /usr/bin/mpdas }