* [gentoo-commits] gentoo-x86 commit in sys-apps/preload/files: init.d-preload conf.d-preload
@ 2008-10-18 2:20 Jeremy Olexa (darkside)
0 siblings, 0 replies; 4+ messages in thread
From: Jeremy Olexa (darkside) @ 2008-10-18 2:20 UTC (permalink / raw
To: gentoo-commits
darkside 08/10/18 02:20:48
Added: init.d-preload conf.d-preload
Log:
initial import, sys-app/preload, an adaptive readahead deamon
(Portage version: 2.2_rc12/cvs/Linux 2.6.27-git6 x86_64)
Revision Changes Path
1.1 sys-apps/preload/files/init.d-preload
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/init.d-preload?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/init.d-preload?rev=1.1&content-type=text/plain
Index: init.d-preload
===================================================================
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/files/init.d-preload,v 1.1 2008/10/18 02:20:48 darkside Exp $
depend() {
after xdm
}
restart() {
ebegin "Reloading config for preload"
killall -SIGHUP /usr/sbin/preload
eend $?
}
start() {
ebegin "Starting preload"
start-stop-daemon --start --quiet --exec /usr/sbin/preload -- \
--logfile ${PRELOAD_LOGFILE} -V ${PRELOAD_VERBOSITY} -n ${PRELOAD_NICE}
eend $?
}
stop() {
ebegin "Stopping preload"
start-stop-daemon --stop --quiet --exec /usr/sbin/preload
eend $?
}
1.1 sys-apps/preload/files/conf.d-preload
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/conf.d-preload?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/conf.d-preload?rev=1.1&content-type=text/plain
Index: conf.d-preload
===================================================================
# Copyright 1999-2008 Gentoo Foundation
# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/files/conf.d-preload,v 1.1 2008/10/18 02:20:48 darkside Exp $
# preload configuration file
## verbosity. 0-9, Default is 4.
PRELOAD_VERBOSITY="4"
## set this for niceness. Default is 15
PRELOAD_NICE="15"
## log file
PRELOAD_LOGFILE="/var/log/preload.log"
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-commits] gentoo-x86 commit in sys-apps/preload/files: init.d-preload conf.d-preload
@ 2008-10-20 18:58 Jeremy Olexa (darkside)
0 siblings, 0 replies; 4+ messages in thread
From: Jeremy Olexa (darkside) @ 2008-10-20 18:58 UTC (permalink / raw
To: gentoo-commits
darkside 08/10/20 18:58:11
Modified: init.d-preload conf.d-preload
Log:
Minor bump for sys-apps/preload to improve init/conf scripts and remove unused etc file
(Portage version: 2.2_rc12/cvs/Linux 2.6.27-git6 x86_64)
Revision Changes Path
1.2 sys-apps/preload/files/init.d-preload
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/init.d-preload?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/init.d-preload?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/init.d-preload?r1=1.1&r2=1.2
Index: init.d-preload
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-apps/preload/files/init.d-preload,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- init.d-preload 18 Oct 2008 02:20:48 -0000 1.1
+++ init.d-preload 20 Oct 2008 18:58:11 -0000 1.2
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/files/init.d-preload,v 1.1 2008/10/18 02:20:48 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/files/init.d-preload,v 1.2 2008/10/20 18:58:11 darkside Exp $
depend() {
after xdm
@@ -16,7 +16,8 @@
start() {
ebegin "Starting preload"
start-stop-daemon --start --quiet --exec /usr/sbin/preload -- \
- --logfile ${PRELOAD_LOGFILE} -V ${PRELOAD_VERBOSITY} -n ${PRELOAD_NICE}
+ -l ${PRELOAD_LOGFILE} -V ${PRELOAD_VERBOSITY} -n ${PRELOAD_NICE} \
+ -s ${PRELOAD_STATEFILE}
eend $?
}
@@ -25,6 +26,3 @@
start-stop-daemon --stop --quiet --exec /usr/sbin/preload
eend $?
}
-
-
-
1.2 sys-apps/preload/files/conf.d-preload
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/conf.d-preload?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/conf.d-preload?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/conf.d-preload?r1=1.1&r2=1.2
Index: conf.d-preload
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-apps/preload/files/conf.d-preload,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- conf.d-preload 18 Oct 2008 02:20:48 -0000 1.1
+++ conf.d-preload 20 Oct 2008 18:58:11 -0000 1.2
@@ -1,12 +1,22 @@
# Copyright 1999-2008 Gentoo Foundation
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/files/conf.d-preload,v 1.1 2008/10/18 02:20:48 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/files/conf.d-preload,v 1.2 2008/10/20 18:58:11 darkside Exp $
# preload configuration file
-## verbosity. 0-9, Default is 4.
+# verbosity. 0-9, Default is 4.
PRELOAD_VERBOSITY="4"
-## set this for niceness. Default is 15
+# set this for niceness. Default is 15
PRELOAD_NICE="15"
-## log file
-PRELOAD_LOGFILE="/var/log/preload.log"
+# log file (default is /var/log/preload.log )
+# Empty means default location.
+#PRELOAD_LOGFILE="/var/log/preload.log"
+
+# prelaod state file (default is /var/lib/preload/preload.state )
+# Empty means no state is saved.
+#PRELOAD_STATEFILE="\"\""
+PRELOAD_STATEFILE="/var/lib/preload/preload.state"
+
+## Not supported in Gentoo yet. Patches to init script welcome. ##
+# Option to call ionice with. Leave empty to skip ionice.
+#IONICE_OPTS="-c3"
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-commits] gentoo-x86 commit in sys-apps/preload/files: init.d-preload conf.d-preload
@ 2008-10-23 15:16 Jeremy Olexa (darkside)
0 siblings, 0 replies; 4+ messages in thread
From: Jeremy Olexa (darkside) @ 2008-10-23 15:16 UTC (permalink / raw
To: gentoo-commits
darkside 08/10/23 15:16:14
Modified: init.d-preload conf.d-preload
Log:
sys-apps/preload - fix init script for bug 242578 and better handle 'default' values
(Portage version: 2.2_rc12/cvs/Linux 2.6.27-git6 x86_64)
Revision Changes Path
1.3 sys-apps/preload/files/init.d-preload
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/init.d-preload?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/init.d-preload?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/init.d-preload?r1=1.2&r2=1.3
Index: init.d-preload
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-apps/preload/files/init.d-preload,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- init.d-preload 20 Oct 2008 18:58:11 -0000 1.2
+++ init.d-preload 23 Oct 2008 15:16:14 -0000 1.3
@@ -1,23 +1,17 @@
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/files/init.d-preload,v 1.2 2008/10/20 18:58:11 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/files/init.d-preload,v 1.3 2008/10/23 15:16:14 darkside Exp $
depend() {
after xdm
}
-restart() {
- ebegin "Reloading config for preload"
- killall -SIGHUP /usr/sbin/preload
- eend $?
-}
-
start() {
ebegin "Starting preload"
start-stop-daemon --start --quiet --exec /usr/sbin/preload -- \
- -l ${PRELOAD_LOGFILE} -V ${PRELOAD_VERBOSITY} -n ${PRELOAD_NICE} \
- -s ${PRELOAD_STATEFILE}
+ -l ${PRELOAD_LOGFILE:-/var/log/preload.log} -V ${PRELOAD_VERBOSITY:-4} \
+ -n ${PRELOAD_NICE:-15} -s ${PRELOAD_STATEFILE:-""}
eend $?
}
1.4 sys-apps/preload/files/conf.d-preload
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/conf.d-preload?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/conf.d-preload?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/conf.d-preload?r1=1.3&r2=1.4
Index: conf.d-preload
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-apps/preload/files/conf.d-preload,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- conf.d-preload 20 Oct 2008 22:58:41 -0000 1.3
+++ conf.d-preload 23 Oct 2008 15:16:14 -0000 1.4
@@ -1,19 +1,19 @@
# Copyright 1999-2008 Gentoo Foundation
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/files/conf.d-preload,v 1.3 2008/10/20 22:58:41 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/files/conf.d-preload,v 1.4 2008/10/23 15:16:14 darkside Exp $
# preload configuration file
# verbosity. 0-9, Default is 4.
-PRELOAD_VERBOSITY="4"
+#PRELOAD_VERBOSITY="4"
-# set this for niceness. Default is 15
-PRELOAD_NICE="15"
+# set this for niceness. Default is 15. Valid ranges are from -20 to 19. See
+# nice(1) man page.
+#PRELOAD_NICE="15"
# log file (default is /var/log/preload.log )
-PRELOAD_LOGFILE="/var/log/preload.log"
+#PRELOAD_LOGFILE="/var/log/preload.log"
-# prelaod state file (default is /var/lib/preload/preload.state )
-# Empty means no state is saved.
-#PRELOAD_STATEFILE="\"\""
+# preload state file (default location is /var/lib/preload/preload.state )
+# Empty (commented out) means no state is saved.
PRELOAD_STATEFILE="/var/lib/preload/preload.state"
## Not supported in Gentoo yet. Patches to init script welcome. ##
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-commits] gentoo-x86 commit in sys-apps/preload/files: init.d-preload conf.d-preload
@ 2008-10-28 2:02 Jeremy Olexa (darkside)
0 siblings, 0 replies; 4+ messages in thread
From: Jeremy Olexa (darkside) @ 2008-10-28 2:02 UTC (permalink / raw
To: gentoo-commits
darkside 08/10/28 02:02:14
Modified: init.d-preload conf.d-preload
Log:
sys-app/preload - fix init script (see ChangeLog for details)
(Portage version: 2.2_rc12/cvs/Linux 2.6.27-git6 x86_64)
Revision Changes Path
1.5 sys-apps/preload/files/init.d-preload
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/init.d-preload?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/init.d-preload?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/init.d-preload?r1=1.4&r2=1.5
Index: init.d-preload
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-apps/preload/files/init.d-preload,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- init.d-preload 24 Oct 2008 01:38:43 -0000 1.4
+++ init.d-preload 28 Oct 2008 02:02:14 -0000 1.5
@@ -1,29 +1,29 @@
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/files/init.d-preload,v 1.4 2008/10/24 01:38:43 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/files/init.d-preload,v 1.5 2008/10/28 02:02:14 darkside Exp $
depend() {
after localmount xdm
}
-# Note: pid changes so we can't use a PIDFILE type thing.
start() {
ebegin "Starting preload"
- start-stop-daemon --start --quiet --exec /usr/sbin/preload -- \
+ start-stop-daemon --start --quiet --background \
+ --make-pidfile --pidfile ${PIDFILE} --exec /usr/sbin/preload -- \
-l ${PRELOAD_LOGFILE:-/var/log/preload.log} -V ${PRELOAD_VERBOSITY:-4} \
- -n ${PRELOAD_NICE:-15} -s ${PRELOAD_STATEFILE:-""}
+ -n ${PRELOAD_NICE:-15} -s ${PRELOAD_STATEFILE:-""} -f
- IONICE=$(type -p ionice)
- if [[ -x "${IONICE}" && -n "${IONICE_OPTS}" ]]; then
- einfo "ionice'ing preload"
- ${IONICE} "${IONICE_OPTS}" -p $(pidof preload)
+ IONICE="$(command -v ionice)"
+ if [ -x "${IONICE}" -a -n "${IONICE_OPTS}" ]; then
+ einfo "ionicing preload"
+ "${IONICE}" "${IONICE_OPTS}" -p $(<${PIDFILE})
fi
eend $?
}
stop() {
- ebegin "Stopping preload"
- start-stop-daemon --stop --quiet --exec /usr/sbin/preload
+ ebegin "Stopping preload (may take awhile)"
+ start-stop-daemon --stop --retry 120 --quiet --pidfile ${PIDFILE}
eend $?
}
1.6 sys-apps/preload/files/conf.d-preload
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/conf.d-preload?rev=1.6&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/conf.d-preload?rev=1.6&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/preload/files/conf.d-preload?r1=1.5&r2=1.6
Index: conf.d-preload
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-apps/preload/files/conf.d-preload,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- conf.d-preload 24 Oct 2008 01:38:43 -0000 1.5
+++ conf.d-preload 28 Oct 2008 02:02:14 -0000 1.6
@@ -1,8 +1,10 @@
# Copyright 1999-2008 Gentoo Foundation
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/files/conf.d-preload,v 1.5 2008/10/24 01:38:43 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/files/conf.d-preload,v 1.6 2008/10/28 02:02:14 darkside Exp $
# preload configuration file
-# verbosity. 0-9, Default is 4.
+PIDFILE="/var/run/preload.pid"
+
+# verbosity. 0-10, Default is 4.
#PRELOAD_VERBOSITY="4"
# set this for niceness. Default is 15. Valid ranges are from -20 to 19. See
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-10-28 2:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-20 18:58 [gentoo-commits] gentoo-x86 commit in sys-apps/preload/files: init.d-preload conf.d-preload Jeremy Olexa (darkside)
-- strict thread matches above, loose matches on Subject: below --
2008-10-28 2:02 Jeremy Olexa (darkside)
2008-10-23 15:16 Jeremy Olexa (darkside)
2008-10-18 2:20 Jeremy Olexa (darkside)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox