summaryrefslogtreecommitdiff
path: root/user/haveged/haveged.initd
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-01-27 20:20:57 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-01-27 20:20:57 +0000
commit35cf1156baad094ddcf9ef26ad26e71fe5df1a97 (patch)
tree1658207d9ae5156b742148c50309b051e756eb9e /user/haveged/haveged.initd
parentebeee0de334e0fe87934393f1be977aeb17805f3 (diff)
parent4b8e76cc12e2b73ff9ad920f7f4eb370f0ca3b33 (diff)
downloadpackages-35cf1156baad094ddcf9ef26ad26e71fe5df1a97.tar.gz
packages-35cf1156baad094ddcf9ef26ad26e71fe5df1a97.tar.bz2
packages-35cf1156baad094ddcf9ef26ad26e71fe5df1a97.tar.xz
packages-35cf1156baad094ddcf9ef26ad26e71fe5df1a97.zip
Merge branch 'haveged' into 'master'
user/haveged: new package APKBUILD, patch, and OpenRC script imported from Alpine. Builds and runs on `x86_64`. Note the OpenRC configuration file does not set any default options -- it may be desirable to set some default options there such as `-w 1024`, which I believe is common in other distributions. See merge request !149
Diffstat (limited to 'user/haveged/haveged.initd')
-rw-r--r--user/haveged/haveged.initd11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/haveged/haveged.initd b/user/haveged/haveged.initd
new file mode 100644
index 000000000..86660e9c3
--- /dev/null
+++ b/user/haveged/haveged.initd
@@ -0,0 +1,11 @@
+#!/sbin/openrc-run
+
+command="/usr/sbin/haveged"
+command_args="$HAVEGED_OPTS"
+command_background="yes"
+
+pidfile="/run/$RC_SVCNAME.pid"
+
+depend() {
+ need net
+}