diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-19 09:13:06 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-19 09:13:06 +0000 |
commit | 8b63b64f4fd16c21acd47ae8751927b0ca785ecd (patch) | |
tree | dd7f36f6f29ee1d89203d93d22f75693e9ad0fe7 /main/busybox-initscripts/dnsd.initd | |
parent | 5aa71653044474a3fdc41dbed4a2e1a818d91093 (diff) | |
download | aports-8b63b64f4fd16c21acd47ae8751927b0ca785ecd.tar.bz2 aports-8b63b64f4fd16c21acd47ae8751927b0ca785ecd.tar.xz |
main/busybox-initscripts: use pidfile
Use the pidfile rather than exec name to stop services. This fixes
issue with qemu-arm
Diffstat (limited to 'main/busybox-initscripts/dnsd.initd')
-rw-r--r-- | main/busybox-initscripts/dnsd.initd | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/main/busybox-initscripts/dnsd.initd b/main/busybox-initscripts/dnsd.initd index e11a73d1d6..3afce3a37c 100644 --- a/main/busybox-initscripts/dnsd.initd +++ b/main/busybox-initscripts/dnsd.initd @@ -1,18 +1,12 @@ #!/sbin/runscript +name="busybox $SVCNAME" +command="/usr/sbin/$SVCNAME" +command_args="$DNSD_OPTS" +pidfile="/var/run/$SVCNAME.pid" + depend() { need net after firewall } -start() { - ebegin "Starting dnsd" - start-stop-daemon --start --exec /usr/sbin/dnsd -- -d $DNSD_OPTS - eend $? -} - -stop () { - ebegin "Stopping dnsd" - start-stop-daemon --stop --exec /usr/sbin/dnsd - eend $? -} |