diff options
Diffstat (limited to 'sys-apps/clrngd/files')
-rw-r--r-- | sys-apps/clrngd/files/clrngd-conf.d | 9 | ||||
-rw-r--r-- | sys-apps/clrngd/files/clrngd-init.d | 19 |
2 files changed, 28 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..d178f5de8ece --- /dev/null +++ b/sys-apps/clrngd/files/clrngd-conf.d @@ -0,0 +1,9 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# 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..716eaeb86f27 --- /dev/null +++ b/sys-apps/clrngd/files/clrngd-init.d @@ -0,0 +1,19 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 $? +} |