diff options
author | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-06 19:19:20 +0000 |
---|---|---|
committer | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-06 19:19:20 +0000 |
commit | f03cd1d9e088f9e99741aa8a68336a00258560d4 (patch) | |
tree | fb6bc192849411370cfca40bfe5531cfd3b587f2 /sys-block/noflushd/files | |
parent | Added to ~ppc. (diff) | |
download | gentoo-2-f03cd1d9e088f9e99741aa8a68336a00258560d4.tar.gz gentoo-2-f03cd1d9e088f9e99741aa8a68336a00258560d4.tar.bz2 gentoo-2-f03cd1d9e088f9e99741aa8a68336a00258560d4.zip |
Moved from sys-apps/noflushd to sys-block/noflushd.
Diffstat (limited to 'sys-block/noflushd/files')
-rw-r--r-- | sys-block/noflushd/files/digest-noflushd-2.6.3 | 1 | ||||
-rw-r--r-- | sys-block/noflushd/files/digest-noflushd-2.7.3 | 1 | ||||
-rw-r--r-- | sys-block/noflushd/files/digest-noflushd-2.7.4 | 1 | ||||
-rw-r--r-- | sys-block/noflushd/files/noflushd.confd | 11 | ||||
-rwxr-xr-x | sys-block/noflushd/files/noflushd.rc6 | 31 |
5 files changed, 45 insertions, 0 deletions
diff --git a/sys-block/noflushd/files/digest-noflushd-2.6.3 b/sys-block/noflushd/files/digest-noflushd-2.6.3 new file mode 100644 index 000000000000..e7fdce5b45df --- /dev/null +++ b/sys-block/noflushd/files/digest-noflushd-2.6.3 @@ -0,0 +1 @@ +MD5 045208ec042a354e29145bc3055cb9ed noflushd-2.6.3.tar.gz 103411 diff --git a/sys-block/noflushd/files/digest-noflushd-2.7.3 b/sys-block/noflushd/files/digest-noflushd-2.7.3 new file mode 100644 index 000000000000..54e6df5a5d9b --- /dev/null +++ b/sys-block/noflushd/files/digest-noflushd-2.7.3 @@ -0,0 +1 @@ +MD5 13bad6a6e65846c11d681b89face00f7 noflushd-2.7.3.tar.gz 145328 diff --git a/sys-block/noflushd/files/digest-noflushd-2.7.4 b/sys-block/noflushd/files/digest-noflushd-2.7.4 new file mode 100644 index 000000000000..b5f5e0fc44c5 --- /dev/null +++ b/sys-block/noflushd/files/digest-noflushd-2.7.4 @@ -0,0 +1 @@ +MD5 b579ff6db55eae05a1700035892307d5 noflushd-2.7.4.tar.gz 149686 diff --git a/sys-block/noflushd/files/noflushd.confd b/sys-block/noflushd/files/noflushd.confd new file mode 100644 index 000000000000..8159548c55c8 --- /dev/null +++ b/sys-block/noflushd/files/noflushd.confd @@ -0,0 +1,11 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/noflushd/files/noflushd.confd,v 1.1 2005/03/06 19:19:20 ciaranm Exp $ + +# Config file for /etc/init.d/noflushd + +#TIMEOUT=60 +#DISKS=/dev/discs/disc0/disc +#EXTRA= +#NOFLUSHD_OPTS="-n $TIMEOUT $DISKS $EXTRA" + diff --git a/sys-block/noflushd/files/noflushd.rc6 b/sys-block/noflushd/files/noflushd.rc6 new file mode 100755 index 000000000000..5c1dbb9409ec --- /dev/null +++ b/sys-block/noflushd/files/noflushd.rc6 @@ -0,0 +1,31 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/noflushd/files/noflushd.rc6,v 1.1 2005/03/06 19:19:20 ciaranm Exp $ + +# NB: Config is in /etc/conf.d/noflushd + +depend() { + need localmount +} + +checkconfig() { + if [ -z "$NOFLUSHD_OPTS" ] ; then + eerror "You need to setup your NOFLUSHD_OPTS first" + eerror "Check that you've adjusted /etc/conf.d/noflushd 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 $? +} |