[shutdown]: Make shutdown faster.

This CL changes the shutdown sequence to be more upstartified.
We switch from using the stock shutdown scripts to a custom
sequence that basically terminates chrome cleanly and then kills
all processes that hold open files on our stateful partition and
crypto-home so that we can unmount them cleanly and shutdown.

The change adds a ui.conf upstart job that lets upstart track
the login manager. Starting the ui will start the login manager
and enable a graphical session; stopping the ui will cleanly
kill chrome and then tear down the graphical session.

Review URL: http://chromereview.prom.corp.google.com/1180066


git-svn-id: svn://chrome-svn/chromeos/trunk@169 06c00378-0e64-4dae-be16-12b19f9950a1
This commit is contained in:
tedbo@google.com 2009-11-05 22:10:56 +00:00
parent 9108fb4376
commit cc9a75cffb

View File

@ -449,10 +449,6 @@ rm -f /etc/init/rc-sysinit.conf
sed -i '{ s/xserver_arguments .*/xserver_arguments -nolisten tcp vt01/ }' \ sed -i '{ s/xserver_arguments .*/xserver_arguments -nolisten tcp vt01/ }' \
/etc/slim.conf /etc/slim.conf
# Use our own rcS init script
mv /etc/init.d/rcS /etc/init.d/rcS.orig
ln -s /etc/init.d/chromeos_init.sh /etc/init.d/rcS
# Clean out unneeded Xsession scripts # Clean out unneeded Xsession scripts
XSESSION_D="/etc/X11/Xsession.d" XSESSION_D="/etc/X11/Xsession.d"
KEEPERS="20x11-common_process-args 51x11-chromeos-set-startup \ KEEPERS="20x11-common_process-args 51x11-chromeos-set-startup \