diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-08-08 18:56:06 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-08-09 11:52:35 +0000 |
commit | 079a304860d44dc322028ccc42b9bbaba19d83c2 (patch) | |
tree | cb56496a4acb868a361a312d87b37cc6776cce1b /main/haveged/haveged.initd | |
parent | 4c65999655fbf02a94e7308aa1578bef991f9e2a (diff) | |
download | aports-079a304860d44dc322028ccc42b9bbaba19d83c2.tar.bz2 aports-079a304860d44dc322028ccc42b9bbaba19d83c2.tar.xz |
main/haveged: simplify runscript
Diffstat (limited to 'main/haveged/haveged.initd')
-rw-r--r-- | main/haveged/haveged.initd | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/main/haveged/haveged.initd b/main/haveged/haveged.initd index 2ce8335737..86660e9c31 100644 --- a/main/haveged/haveged.initd +++ b/main/haveged/haveged.initd @@ -1,18 +1,11 @@ #!/sbin/openrc-run -depend() { - need net -} +command="/usr/sbin/haveged" +command_args="$HAVEGED_OPTS" +command_background="yes" -start() { - ebegin "Starting haveged" - start-stop-daemon --start --quiet --exec /usr/sbin/haveged -- ${HAVEGED_OPTS} - eend $? -} +pidfile="/run/$RC_SVCNAME.pid" -stop() { - ebegin "Stopping haveged" - start-stop-daemon --stop --quiet --pidfile /var/run/haveged.pid - result=$? - eend $result +depend() { + need net } |