summaryrefslogtreecommitdiffstats
path: root/main/busybox-initscripts/klogd.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-07-19 09:13:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-07-19 09:13:06 +0000
commit8b63b64f4fd16c21acd47ae8751927b0ca785ecd (patch)
treedd7f36f6f29ee1d89203d93d22f75693e9ad0fe7 /main/busybox-initscripts/klogd.initd
parent5aa71653044474a3fdc41dbed4a2e1a818d91093 (diff)
downloadaports-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/klogd.initd')
-rw-r--r--main/busybox-initscripts/klogd.initd18
1 files changed, 5 insertions, 13 deletions
diff --git a/main/busybox-initscripts/klogd.initd b/main/busybox-initscripts/klogd.initd
index d783bccdc..538017043 100644
--- a/main/busybox-initscripts/klogd.initd
+++ b/main/busybox-initscripts/klogd.initd
@@ -1,21 +1,13 @@
#!/sbin/runscript
+name="busybox klogd"
+command="/sbin/klogd"
+command_args="${KLOGD_OPTS}"
+pidfile="/var/run/klogd.pid"
+
depend() {
need clock hostname localmount
before net
provide logger
keyword novserver
}
-
-start() {
- ebegin "Starting busybox kernel logging"
- start-stop-daemon --start --exec /sbin/klogd -- ${KLOGD_OPTS}
- eend $?
-}
-
-stop () {
- ebegin "Stopping busybox kernel logging"
- start-stop-daemon --stop --exec /sbin/klogd
- eend $?
-}
-