diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /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.d | 8 | ||||
-rw-r--r-- | sys-apps/clrngd/files/clrngd-init.d | 18 |
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 $? +} |