[PC-BSD Commits] r17567 - in pcbsd/current/overlays/desktop-overlay: boot etc
svn at pcbsd.org
svn at pcbsd.org
Mon Jul 2 09:45:59 PDT 2012
Author: kris
Date: 2012-07-02 16:45:56 +0000 (Mon, 02 Jul 2012)
New Revision: 17567
Modified:
pcbsd/current/overlays/desktop-overlay/boot/loader.conf
pcbsd/current/overlays/desktop-overlay/etc/rc.shutdown
pcbsd/current/overlays/desktop-overlay/etc/sysctl.conf
Log:
Do some tuning to speedup the boot and shutdown processes
Modified: pcbsd/current/overlays/desktop-overlay/boot/loader.conf
===================================================================
--- pcbsd/current/overlays/desktop-overlay/boot/loader.conf 2012-07-02 16:17:21 UTC (rev 17566)
+++ pcbsd/current/overlays/desktop-overlay/boot/loader.conf 2012-07-02 16:45:56 UTC (rev 17567)
@@ -41,3 +41,6 @@
splash_pcx_load="YES"
bitmap_load="YES"
bitmap_name="/boot/loading-screen.pcx"
+
+# Speed up boot
+kern.cam.scsi_delay="500"
Modified: pcbsd/current/overlays/desktop-overlay/etc/rc.shutdown
===================================================================
--- pcbsd/current/overlays/desktop-overlay/etc/rc.shutdown 2012-07-02 16:17:21 UTC (rev 17566)
+++ pcbsd/current/overlays/desktop-overlay/etc/rc.shutdown 2012-07-02 16:45:56 UTC (rev 17567)
@@ -45,6 +45,16 @@
. /etc/rc.subr
+# PC-BSD Desktop Shutdown
+echo -e "Shutting down desktop services...\c"
+killall -9 dbus-daemon 2>/dev/null >/dev/null
+killall -9 hald 2>/dev/null >/dev/null
+killall -9 gdm-binary 2>/dev/null >/dev/null
+killall -9 gdm-simple-slave 2>/dev/null >/dev/null
+killall -9 gdm-session-worker 2>/dev/null >/dev/null
+killall -9 X 2>/dev/null >/dev/null
+echo -e "Done!"
+
load_rc_config 'XXX'
# reverse_list list
Modified: pcbsd/current/overlays/desktop-overlay/etc/sysctl.conf
===================================================================
--- pcbsd/current/overlays/desktop-overlay/etc/sysctl.conf 2012-07-02 16:17:21 UTC (rev 17566)
+++ pcbsd/current/overlays/desktop-overlay/etc/sysctl.conf 2012-07-02 16:45:56 UTC (rev 17567)
@@ -47,3 +47,7 @@
# Enable shm_allow_removed
kern.ipc.shm_allow_removed=1
+
+# Speed up the shutdown process
+kern.shutdown.poweroff_delay=500
+
More information about the Commits
mailing list