OLD | NEW |
1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2011 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 "Job to guarantee certain jobs start" | 5 description "Job to guarantee certain jobs start" |
6 author "chromium-os-dev@chromium.org" | 6 author "chromium-os-dev@chromium.org" |
7 | 7 |
8 # This job is used as a failsafe to guarantee certain jobs start | 8 # This job is used as a failsafe to guarantee certain jobs start |
9 # even if we fail to get a login screen. | 9 # even if we fail to get a login screen. |
10 # | 10 # |
11 # To improve boot performance, a variety of important jobs are | 11 # To improve boot performance, a variety of important jobs are |
12 # deliberately delayed until after the Chrome login screen is | 12 # deliberately delayed until after the Chrome login screen is |
13 # presented. By design, the services aren't needed right away, but | 13 # presented. By design, the services aren't needed right away, but |
14 # in test and debug environments, if Chrome fails to come up, | 14 # in test and debug environments, if Chrome fails to come up, |
15 # important facilities needed to debug the failure (such as | 15 # important facilities needed to debug the failure (such as |
16 # alternate VT consoles and ssh access) could fail to start. This | 16 # alternate VT consoles and ssh access) could fail to start. This |
17 # job provides the event that those critical jobs should depend on | 17 # job provides the event that those critical jobs should depend on |
18 # for starting. | 18 # for starting. |
19 # | 19 # |
20 # Standard usage: | 20 # Standard usage: |
21 # start on starting failsafe | 21 # start on starting failsafe |
22 # stop on stopping failsafe | 22 # stop on stopping failsafe |
23 # Jobs that normally terminate in a bounded time (i.e. don't use | 23 # Jobs that normally terminate in a bounded time (i.e. don't use |
24 # 'respawn') should omit the 'stop on' stanza. | 24 # 'respawn') should omit the 'stop on' stanza. |
25 # | 25 # |
26 # Note that this job can start on either of two events, both of | 26 # Note that this job can start on either of two events, both of |
27 # which are expected to occur in a normal boot. To avoid firing | 27 # which are expected to occur in a normal boot. To avoid firing |
28 # twice, this job starts once and doesn't terminate until system | 28 # twice, this job starts once and doesn't terminate until system |
29 # shutdown. | 29 # shutdown. |
| 30 # |
| 31 # Also note that since system-services and the failsafe-delay |
| 32 # wait until boot-services have been started, jobs that start on |
| 33 # failsafe can assume that boot-services are started. |
30 | 34 |
31 start on starting system-services or stopped failsafe-delay | 35 start on starting system-services or stopped failsafe-delay |
32 stop on starting halt or starting reboot | 36 stop on starting halt or starting reboot |
33 | 37 |
34 # Main process deliberately omitted | 38 # Main process deliberately omitted |
OLD | NEW |