| 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 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 exec /sbin/session_manager_setup.sh >"${UI_LOG_FILE}" 2>&1 | 71 exec /sbin/session_manager_setup.sh >"${UI_LOG_FILE}" 2>&1 |
| 72 end script | 72 end script |
| 73 | 73 |
| 74 post-stop script | 74 post-stop script |
| 75 | 75 |
| 76 set +e | 76 set +e |
| 77 . /sbin/killers | 77 . /sbin/killers |
| 78 | 78 |
| 79 # Terminate any processes with files open on the mount point | 79 # Terminate any processes with files open on the mount point |
| 80 kill_with_open_files_on /home/chronos/user | 80 kill_with_open_files_on /home/chronos/user |
| 81 term_process "^X$" | 81 |
| 82 # Ensure X, candidate_window for input methods, ibus-daemon, and sub processes |
| 83 # of ibus-daemon are terminated. Note that candidate_window and IBus processes |
| 84 # are not mananged by Upstart. They are launched from Chrome. ".*" is used |
| 85 # since the process name used for matching is limited to 15 characters. |
| 86 term_process "(^X$|candidate_w.*|ibus-.*)" |
| 87 |
| 88 # Remove ibus-daemon's PID file. |
| 89 rm -f /home/chronos/.config/ibus/bus/* |
| 82 | 90 |
| 83 # Eventually, this will take a parameter specifying which user's dir to unmount. | 91 # Eventually, this will take a parameter specifying which user's dir to unmount. |
| 84 /usr/sbin/cryptohome --action=unmount | 92 /usr/sbin/cryptohome --action=unmount |
| 85 | 93 |
| 86 end script | 94 end script |
| OLD | NEW |