summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-03-30 05:57:32 +0000
committerMike Frysinger <vapier@gentoo.org>2007-03-30 05:57:32 +0000
commit691a6db7d6970b3f3a578e18a8b8c11e9f4922b5 (patch)
tree3088088974013069c9750cc427312389d2026c35 /sys-devel/prelink/files
parentSuccessfully tested on sparc. (diff)
downloadgentoo-2-691a6db7d6970b3f3a578e18a8b8c11e9f4922b5.tar.gz
gentoo-2-691a6db7d6970b3f3a578e18a8b8c11e9f4922b5.tar.bz2
gentoo-2-691a6db7d6970b3f3a578e18a8b8c11e9f4922b5.zip
Make cronjob prelinking control tristate (yes, no, user-controlled) as suggested by Antti Mäkelä #172543.
(Portage version: 2.1.2.2)
Diffstat (limited to 'sys-devel/prelink/files')
-rw-r--r--sys-devel/prelink/files/prelink.confd7
-rw-r--r--sys-devel/prelink/files/prelink.cron5
2 files changed, 10 insertions, 2 deletions
diff --git a/sys-devel/prelink/files/prelink.confd b/sys-devel/prelink/files/prelink.confd
index e789bd0488e3..6b89b8c1f1fd 100644
--- a/sys-devel/prelink/files/prelink.confd
+++ b/sys-devel/prelink/files/prelink.confd
@@ -1,10 +1,13 @@
# For an in depth prelinking guide, please see:
# http://www.gentoo.org/doc/en/prelink-howto.xml
-# Set this to no to disable prelinking altogether
+# Control prelinking behavior in the cronjob.
+# yes - automatically prelink the system
+# no - automatically un-prelink the system
+# "" - do nothing at all (user manages)
# (if you change this from yes to no prelink -ua
# will be run next night to undo prelinking)
-PRELINKING=no
+PRELINKING=""
# Options to pass to prelink
# -m Try to conserve virtual memory by allowing overlapping
diff --git a/sys-devel/prelink/files/prelink.cron b/sys-devel/prelink/files/prelink.cron
index 2561e9d3727a..945d419d5083 100644
--- a/sys-devel/prelink/files/prelink.cron
+++ b/sys-devel/prelink/files/prelink.cron
@@ -2,6 +2,11 @@
. /etc/conf.d/prelink
+case $PRELINKING in
+ yes|no);;
+ *) exit 0;;
+esac
+
renice +19 -p $$ >/dev/null 2>&1
if [ "$PRELINKING" != yes ]; then