diff options
Diffstat (limited to 'sys-apps/noflushd/files')
-rw-r--r-- | sys-apps/noflushd/files/70noflushd | 10 | ||||
-rw-r--r-- | sys-apps/noflushd/files/digest-noflushd-2.4 | 1 | ||||
-rw-r--r-- | sys-apps/noflushd/files/noflushd | 30 |
3 files changed, 41 insertions, 0 deletions
diff --git a/sys-apps/noflushd/files/70noflushd b/sys-apps/noflushd/files/70noflushd new file mode 100644 index 000000000000..333833341c08 --- /dev/null +++ b/sys-apps/noflushd/files/70noflushd @@ -0,0 +1,10 @@ +# Settings for the noflushd daemon: + +# Default timeout in minutes to sipn down disk +NOFLUSHD_TIMEOUT=60 + +# Disks to handle +NOFLUSHD_DISKS='/dev/discs/disc0/disc' + +# Run 'noflushd -h' to find out how to set individual timeouts +# for different discs.
\ No newline at end of file diff --git a/sys-apps/noflushd/files/digest-noflushd-2.4 b/sys-apps/noflushd/files/digest-noflushd-2.4 new file mode 100644 index 000000000000..aacb22f941a8 --- /dev/null +++ b/sys-apps/noflushd/files/digest-noflushd-2.4 @@ -0,0 +1 @@ +MD5 b248ff04030ffa79a14ef76f3d0ff8f0 noflushd_2.4.orig.tar.gz diff --git a/sys-apps/noflushd/files/noflushd b/sys-apps/noflushd/files/noflushd new file mode 100644 index 000000000000..ddf280be20ad --- /dev/null +++ b/sys-apps/noflushd/files/noflushd @@ -0,0 +1,30 @@ +#!/bin/sh +#RCUPDATE:2 3 4:70:This line is required for script management + +. /etc/rc.d/config/functions +. /etc/rc.d/config/basic + +SERVICE="noflushd" +opts="start stop restart" + +PIDFILE=/var/run/noflushd.pid +EXE=/usr/sbin/noflushd + +start() { + ebegin "Starting $SERVICE" + start-stop-daemon --start --quiet --exec "$EXE" -- -n $NOFLUSHD_TIMEOUT $NOFLUSHD_DISKS + eend $? "Started $SERVICE." "Error starting $SERVICE." +} + +stop() { + ebegin "Stopping $SERVICE" + start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $EXE + eend $? "Stopped $SERVICE." "Error stopping $SERVICE." +} + +restart() { + stop + start +} + +doservice ${@} |