I've been toying with the idea of using runlevel 4 as a "battery" runlevel, basically stopping every service I can possibly stop and doing every extreme measure possible to extend my laptop's battery life to more than an hour (seeing as I get 4 hours in Windoze).
With that in mind, I copied all of my runlevel 5 scripts into runlevel 4, then tried (in a su -) to do an:
Unfortunately, this ended X. I could do a CTRL-ALT-F1 and login again, startx, and be on my way in runlevel 4, but that seems to be a lot overkill for just ending a few services and starting a few more. Am I doing something wrong? (I must be!) Thanks much!
Here's the /etc/inittab
# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
# System initialization.
# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# When our UPS tells us power has failed, assume we have a few minutes
# of power left. Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"
# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"
# Run gettys in standard runlevels
# Run xdm in runlevel 5