| 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 end script | 39 end script |
| 40 | 40 |
| 41 exec /sbin/session_manager_setup.sh | 41 exec /sbin/session_manager_setup.sh |
| 42 | 42 |
| 43 post-stop script | 43 post-stop script |
| 44 | 44 |
| 45 set +e | 45 set +e |
| 46 . /sbin/killers | 46 . /sbin/killers |
| 47 | 47 |
| 48 # If this was a short-lived, first login, then cryptohome may still be expanding | 48 # Terminate any processes with files open on the mount point |
| 49 # the image. resize2fs is called in a loop from mount.cryptohome so we kill it. | |
| 50 # The sleep loop in kill_with_open_files_on should be enough time for the | |
| 51 # current resize2fs call to complete. | |
| 52 term_process "mount.cryptohome$" | |
| 53 kill_with_open_files_on /home/chronos/user | 49 kill_with_open_files_on /home/chronos/user |
| 54 term_process "^X$" | 50 term_process "^X$" |
| 55 | 51 |
| 56 # Eventually, this will take a parameter specifying which user's dir to unmount. | 52 # Eventually, this will take a parameter specifying which user's dir to unmount. |
| 57 ! exec /usr/sbin/umount.cryptohome | 53 /usr/sbin/cryptohome --action=unmount |
| 58 | 54 |
| 59 end script | 55 end script |
| OLD | NEW |