rc-scripts/trunk/rc.d/rc.sysinit
glen
cvs at pld-linux.org
Wed Mar 22 20:54:31 CET 2006
Author: glen
Date: Wed Mar 22 20:54:26 2006
New Revision: 7279
Modified:
rc-scripts/trunk/rc.d/rc.sysinit
Log:
Vserver speedup (skips extra 5 second delay in some cases)
Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit (original)
+++ rc-scripts/trunk/rc.d/rc.sysinit Wed Mar 22 20:54:26 2006
@@ -904,7 +904,10 @@
kill -TERM $(/sbin/pidof getkey) >/dev/null 2>&1
} &
-if ! is_no "$RC_PROMPT"; then
+
+# extra check if the background process we just spawned is still running,
+# as in case of vserver bootup it finishes quite instantly.
+if ! is_no "$RC_PROMPT" && [ -d /proc/$! ]; then
/sbin/getkey -c 5 i && touch /var/run/confirm
fi
wait
More information about the pld-cvs-commit
mailing list