diff options
author | Donny Davies <woodchip@gentoo.org> | 2001-10-18 20:09:25 +0000 |
---|---|---|
committer | Donny Davies <woodchip@gentoo.org> | 2001-10-18 20:09:25 +0000 |
commit | 3bbb4cc0e02567fbdf54359f2f1913a4b17bc0f0 (patch) | |
tree | c5fb531fba2aed4e505d0760a20b0de0950f9004 /sys-apps/noflushd/files | |
parent | noflushd rc5/rc6 support (diff) | |
download | gentoo-2-3bbb4cc0e02567fbdf54359f2f1913a4b17bc0f0.tar.gz gentoo-2-3bbb4cc0e02567fbdf54359f2f1913a4b17bc0f0.tar.bz2 gentoo-2-3bbb4cc0e02567fbdf54359f2f1913a4b17bc0f0.zip |
rc5/rc6 changes. the conf file is removed for the rc6 package, but itll be back when the /etc/conf.d thing is adopted. dont panic!
Diffstat (limited to 'sys-apps/noflushd/files')
-rw-r--r-- | sys-apps/noflushd/files/digest-noflushd-2.4-r3 (renamed from sys-apps/noflushd/files/digest-noflushd-2.4-r1) | 0 | ||||
-rw-r--r-- | sys-apps/noflushd/files/digest-noflushd-2.4-r6 | 1 | ||||
-rw-r--r-- | sys-apps/noflushd/files/noflushd.conf | 2 | ||||
-rw-r--r-- | sys-apps/noflushd/files/noflushd.rc5 (renamed from sys-apps/noflushd/files/noflushd) | 0 | ||||
-rw-r--r-- | sys-apps/noflushd/files/noflushd.rc6 | 35 |
5 files changed, 37 insertions, 1 deletions
diff --git a/sys-apps/noflushd/files/digest-noflushd-2.4-r1 b/sys-apps/noflushd/files/digest-noflushd-2.4-r3 index aacb22f941a8..aacb22f941a8 100644 --- a/sys-apps/noflushd/files/digest-noflushd-2.4-r1 +++ b/sys-apps/noflushd/files/digest-noflushd-2.4-r3 diff --git a/sys-apps/noflushd/files/digest-noflushd-2.4-r6 b/sys-apps/noflushd/files/digest-noflushd-2.4-r6 new file mode 100644 index 000000000000..aacb22f941a8 --- /dev/null +++ b/sys-apps/noflushd/files/digest-noflushd-2.4-r6 @@ -0,0 +1 @@ +MD5 b248ff04030ffa79a14ef76f3d0ff8f0 noflushd_2.4.orig.tar.gz diff --git a/sys-apps/noflushd/files/noflushd.conf b/sys-apps/noflushd/files/noflushd.conf index 2d2fd841a13b..fdc29569efda 100644 --- a/sys-apps/noflushd/files/noflushd.conf +++ b/sys-apps/noflushd/files/noflushd.conf @@ -11,4 +11,4 @@ DISKS='/dev/discs/disc0/disc' EXTRA='' # Run 'noflushd -h' to find out how to set individual timeouts -# for different discs.
\ No newline at end of file +# for different discs. diff --git a/sys-apps/noflushd/files/noflushd b/sys-apps/noflushd/files/noflushd.rc5 index 852b11fd2ab8..852b11fd2ab8 100644 --- a/sys-apps/noflushd/files/noflushd +++ b/sys-apps/noflushd/files/noflushd.rc5 diff --git a/sys-apps/noflushd/files/noflushd.rc6 b/sys-apps/noflushd/files/noflushd.rc6 new file mode 100644 index 000000000000..9a4ef5171f82 --- /dev/null +++ b/sys-apps/noflushd/files/noflushd.rc6 @@ -0,0 +1,35 @@ +#!/sbin/runscript + +#NOTE: these variables will be moved to /etc/conf.d/noflushd soon, once +# the new initscript changes are done. Its only here temporarily. + +#you can put these in your rc.conf file if you wish +#TIMEOUT=60 +#DISKS=/dev/discs/disc0/disc +#EXTRA= +#NOFLUSHD_OPTS="-n $TIMEOUT $DISKS $EXTRA" + +depend() { + need localmount +} + +checkconfig() { + if [ -z "$NOFLUSHD_OPTS" ] ; then + eerror "You need to setup your NOFLUSHD_OPTS first" + eerror "Check that you've adjusted for your needs" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting noflushd" + start-stop-daemon --start --quiet --exec /usr/sbin/noflushd -- $NOFLUSHD_OPTS + eend $? +} + +stop() { + ebegin "Stopping noflushd" + start-stop-daemon --stop --quiet --pidfile /var/run/noflushd.pid + eend $? +} |