summaryrefslogtreecommitdiff
path: root/sys-apps/clrngd/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/clrngd/files
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/clrngd/files')
-rw-r--r--sys-apps/clrngd/files/clrngd-conf.d8
-rw-r--r--sys-apps/clrngd/files/clrngd-init.d18
2 files changed, 26 insertions, 0 deletions
diff --git a/sys-apps/clrngd/files/clrngd-conf.d b/sys-apps/clrngd/files/clrngd-conf.d
new file mode 100644
index 000000000000..5bb17f6bd208
--- /dev/null
+++ b/sys-apps/clrngd/files/clrngd-conf.d
@@ -0,0 +1,8 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This is the interval between runs of the clrngd main loop. It should NOT be
+# less than 60 seconds (the daemon will exit with an error) as the main loop
+# takes at least a minute to run. 240 seconds (4 minutes) is the default and
+# recommended value.
+DELAYTIME="240"
diff --git a/sys-apps/clrngd/files/clrngd-init.d b/sys-apps/clrngd/files/clrngd-init.d
new file mode 100644
index 000000000000..d8196717a36f
--- /dev/null
+++ b/sys-apps/clrngd/files/clrngd-init.d
@@ -0,0 +1,18 @@
+#!/sbin/openrc-run
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DAEMON=clrngd
+OPTS=${DELAYTIME}
+
+start() {
+ ebegin "Starting ${DAEMON}"
+ start-stop-daemon --start --quiet --exec /usr/sbin/${DAEMON} ${OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${DAEMON}"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/${DAEMON}
+ eend $?
+}