| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 description "Chrome OS user interface" | 5 description "Chrome OS user interface" |
| 6 author "chromium-os-dev@googlegroups.com" | 6 author "chromium-os-dev@googlegroups.com" |
| 7 | 7 |
| 8 start on stopping startup | 8 start on stopping startup |
| 9 stop on starting halt or starting reboot | 9 stop on starting halt or starting reboot |
| 10 | 10 |
| 11 respawn | 11 respawn |
| 12 | 12 |
| 13 pre-start script | 13 pre-start script |
| 14 | 14 |
| 15 X_SOCKET_DIR=/tmp/.X11-unix | 15 X_SOCKET_DIR=/tmp/.X11-unix |
| 16 X_ICE_DIR=/tmp/.ICE-unix | 16 X_ICE_DIR=/tmp/.ICE-unix |
| 17 mkdir -p "$X_SOCKET_DIR" "$X_ICE_DIR" | 17 mkdir -p "$X_SOCKET_DIR" "$X_ICE_DIR" |
| 18 chown root:root "$X_SOCKET_DIR" "$X_ICE_DIR" | 18 chown root:root "$X_SOCKET_DIR" "$X_ICE_DIR" |
| 19 chmod 1777 "$X_SOCKET_DIR" "$X_ICE_DIR" | 19 chmod 1777 "$X_SOCKET_DIR" "$X_ICE_DIR" |
| 20 | 20 |
| 21 # make sure we we can easily track ui state |
| 22 rm -rf /var/run/state/ |
| 23 mkdir -p /var/run/state |
| 24 |
| 21 end script | 25 end script |
| 22 | 26 |
| 23 #expect fork | 27 #expect fork |
| 24 #exec /usr/bin/slim -d | 28 #exec /usr/bin/slim -d |
| 25 # To switch back to deprecated slim-based login functionality, comment out the | 29 # To switch back to deprecated slim-based login functionality, comment out the |
| 26 # following and uncomment the two lines above. | 30 # following and uncomment the two lines above. |
| 27 exec /sbin/session_manager_setup.sh | 31 exec /sbin/session_manager_setup.sh |
| 28 | 32 |
| 29 post-stop script | 33 post-stop script |
| 30 | 34 |
| 31 set +e | 35 set +e |
| 32 . /sbin/killers | 36 . /sbin/killers |
| 33 kill_with_open_files_on /home/chronos/user | 37 kill_with_open_files_on /home/chronos/user |
| 34 term_process "^X$" | 38 term_process "^X$" |
| 35 # Eventually, this will take a parameter specifying which user's dir to unmount. | 39 # Eventually, this will take a parameter specifying which user's dir to unmount. |
| 36 exec /usr/sbin/umount.cryptohome | 40 exec /usr/sbin/umount.cryptohome |
| 37 | 41 |
| 38 end script | 42 end script |
| OLD | NEW |