Merge lp:~jamesodhunt/upstart/bug-530779 into lp:upstart
- bug-530779
- Merge into trunk
Status: | Needs review |
---|---|
Proposed branch: | lp:~jamesodhunt/upstart/bug-530779 |
Merge into: | lp:upstart |
Diff against target: |
24650 lines (+24167/-52) 13 files modified
ChangeLog (+57/-0) init/Makefile.am (+2/-1) init/job.c (+17/-18) init/job_process.c (+41/-6) init/process.c (+27/-6) init/process.h (+6/-0) init/tests/data/upstart-1.12.json (+21708/-0) init/tests/test_job_process.c (+483/-10) init/tests/test_state.c (+190/-10) test/Makefile.am (+8/-1) test/test_daemon.c (+1485/-0) test/test_util_common.c (+116/-0) test/test_util_common.h (+27/-0) |
To merge this branch: | bzr merge lp:~jamesodhunt/upstart/bug-530779 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Langasek | Needs Fixing | ||
Review via email: mp+197080@code.launchpad.net |
Commit message
Description of the change
Steve Langasek (vorlon) wrote : | # |
+ TEST_FEATURE ("full double-fork daemon test where parent waits for ultimate child");
does not fit the expected structure of a test feature name. Suggest instead:
+ assert0 (prctl (PR_SET_
Upstart does not depend on PR_SET_
+ /* Low byte is signal */
+ TEST_EQ (siginfo.si_status, SIGTRAP);
+
+ /* Normally, the next byte would be the ptrace event,
+ * but upstart hasn't yet set PTRACE_O_TRACEEXEC, hence
+ * no ptrace event will be available.
+ */
+ TEST_EQ (((siginfo.
The second test here is redundant with the first; if siginfo.si_status == SIGTRAP, the high byte must be 0. Either the second test should be dropped, or, if you want to keep it for clarity, the first test should be modified to check siginfo.si_status & 0x7f.
+ TIMED_BLOCK (5) {
I'm not thrilled about this TIMED_BLOCK() idea. Why should we not just use inotify? For that matter, why is this pidfile needed at all - what is this meant to guard against? The test case already includes its own direct check of the pids with ptrace, so the only thing this pidfile does is make sure the daemon agrees with the test what the PIDs are. That seems unnecessary to me.
+ /* Wait for child to send itself SIGSTOP denoting its
+ * final resting state.
+ */
+ got = FALSE;
+ TIMED_BLOCK (5) {
+
+ memset (&siginfo, 0, sizeof (siginfo));
+ ret = waitid (P_PID, final_pid, &siginfo, WSTOPPED | WNOWAIT | WUNTRACED);
+
+ if (! ret && siginfo.si_code == CLD_STOPPED &&
+ siginfo.si_status == SIGSTOP) {
+ got = TRUE;
+ break;
+ }
+ }
This section seems overly complicated. The child process could just call pause() instead, and let the test runner kill the process when it's done.
+ TIMED_BLOCK (5) {
+ nih_child_poll ();
+
+ if (kill (final_pid, 0) == -1 && errno == ESRCH) {
+ got = TRUE;
+ break;
+ }
+ }
Definitely no reason for this to be in a TIMED_BLOCK(). Or called at all. We've already received CLD_EXITED above, so the kill() should immediately return ESRCH. But again, this code all goes away if we just kill SIGKILL the final_pid, instead of including these checks that are unrelated to the purpose of the test case.
static void
selfpipe_setup (void)
{
- static struct sigaction act;
- int read_flags;
- int write_flags;
[...]
This mixes formatting cha...
James Hunt (jamesodhunt) wrote : | # |
Hi Steve,
I've now updated the deserialisation to make an attempt on the downgrade scenario. Note the comment in process.h though regarding the ordering of ProcessType. I've also raised bug 1256985 whilst looking at this.
> + TEST_FEATURE ("full double-fork daemon test where parent waits for ultimate child");
>
> does not fit the expected structure of a test feature name. Suggest instead:
> TEST_FEATURE ("with daemon where parent waits for ultimate child before exiting");
Fixed.
>
> + assert0 (prctl (PR_SET_
>
> Upstart does not depend on PR_SET_
Fixed.
>
> + /* Low byte is signal */
> + TEST_EQ (siginfo.si_status, SIGTRAP);
> +
> + /* Normally, the next byte would be the ptrace event,
> + * but upstart hasn't yet set PTRACE_O_TRACEEXEC, hence
> + * no ptrace event will be available.
> + */
> + TEST_EQ (((siginfo.
>
> The second test here is redundant with the first; if siginfo.si_status == SIGTRAP, the high byte must be 0. Either the second test should be dropped, or, if you want to keep it for clarity, the first test should be modified to check siginfo.si_status & 0x7f.
Fixed.
>
> + TIMED_BLOCK (5) {
>
> I'm not thrilled about this TIMED_BLOCK() idea. Why should we not just use inotify?
To give some context here, it's worth pointing out that this test has been through a few iterations. An earlier incarnation of it was using signals entirely but that is problematic since:
- test_daemon needed to raise SIGSTOP on itself.
- test_daemon is being ptraced hence is also getting SIGSTOP's sent to it by the kernel.
- This is a multi-process test so we need to guarantee behaviour given that we can't know the order the kernel will schedule each process.
- We don't want to call nih_main_loop() as we cannot then control the test in "single-step" increments (well, as close as we can get to that anyway :-).
Certainly inotify would be the obvious choice but for that fact that it would add further code and complexity to the test since we're avoiding using nih_main_loop().
TIMED_BLOCK offers a rather useful generic facility I think, particularly since a common requirement for the tests is to perform some operation "within a reasonable amount of time" and then fail. Yes, it's tricky to determine the value of "reasonable", but we do need to guarantee a hard test failure, rather than an indefinite hang.
Admittedly, using TIMED_BLOCK() with file_line_count() is rather grisly, but even if we were to use inotify, we'd still need to check the line count on each event as we need to know when a particular parent is in a particular state.
> For that matter, why is this pidfile needed at all - what is this meant to guard against? The test case already includes its own direct check of the pids with ptrace, so the only thing this pidfile does is make sure the daemon agrees with the test what the PIDs are. That seems unnecessary to me.
It's not immediately obvious, but that's not th...
- 1579. By Steve Langasek
- 1580. By James Hunt
-
* init/tests/
data/upstart- 1.12.json: New test data file.
* test/test_daemon.c: New test utility.
* init/Makefile.am: Add "upstart-1.12.json" .
* init/job.c:
- Updated copyright.
- job_deserialise(): Generalise logic to handle missing pids when
upgrading from a version that does not support PROCESS_SECURITY and
PROCESS_DAEMON_ PARENT.
* init/job_process.c:
- Copyright and comments.
- job_process_terminated( ): Consider job ready when daemons parent
exits, rather than when the requisite number of forks have been
performed (based on lp:~vorlon/upstart/lp.530779-rough-draft)
(LP: #530779).
- job_process_trace_new( ): Corrected comment header.
- job_process_trace_new_ child() : Don't consider job ready once
requisite number of forks have occured any more.
- job_process_trace_fork( ): Save parent process.
* init/process.c:
- Updated copyright.
- process_name(): Added PROCESS_DAEMON_ PARENT for completeness.
- process_from_name( ): Added PROCESS_ DAEMON_ PARENT for completeness.
- process_deserialise_ all(): Generalise logic to handle missing pids
when upgrading from a version that does not support PROCESS_SECURITY and
PROCESS_DAEMON_ PARENT.
- process_type_enum_ to_str( ): Added PROCESS_ DAEMON_ PARENT for completeness.
- process_type_str_ to_enum( ): Added PROCESS_ DAEMON_ PARENT for completeness.
* init/process.h: Comments for ProcessType (which must be kept in order).
* init/tests/test_job_ process. c:
- test_run(): New test:
- "with daemon where parent waits for ultimate child before exiting"
- test_spawn(): Remove temporary files.
- test_kill(): Extra checks.
- test_handler():
- Remove erroneous UPSTART_LOGDIR code - not used by this test.
- Add daemon parent checks.
* init/tests/test_state. c:
- test_job_environ_ upgrade( ): Add additional checks to ensure that
json not containing PROCESS_DAEMON_ PARENT elements correctly deserialises
into empty elements.
- test_daemon_parent_ state() : New test that checks a data file containing
jobs with and without PROCESS_DAEMON_ PARENTS can be deserialised.
* test/Makefile.am: Updated for test_daemon.
* test/test_util_common. c:
- get_test_daemon_ binary( ): New function.
- file_line_count(): New function.
* test/test_util_common. h: TIMED_BLOCK(): New utility macro.
James Hunt (jamesodhunt) wrote : | # |
Hi Steve - I've now cleaned up the branch.
Steve Langasek (vorlon) wrote : | # |
>> Upstart does not depend on PR_SET_
>> available on the running kernel - the test suite shouldn't
>> either. The test needs to be skipped if this facility is
>> unavailable, or it needs to be rewritten to avoid subreaper
>> entirely.
> Fixed.
This is not fixed. You've adjusted the test suite to not fail if PR_SET_
This probably calls for the test to be broken out into a separate function so that it can be skipped sensibly.
- 1581. By James Hunt
-
* init/tests/
test_job_ process. c: test_run_ subreaper( ): Separate the
prctl(PR_SET_ CHILD_SUBREAPER ) test into a new function and only call
if the running kernel supports that prctl.
* test/test_util_common. c: get_kernel_ version( ): New function. - 1582. By James Hunt
-
* Sync with lp:upstart.
James Hunt (jamesodhunt) wrote : | # |
Hi Steve,
Thanks for reviewing - code updated.
Unmerged revisions
- 1582. By James Hunt
-
* Sync with lp:upstart.
- 1581. By James Hunt
-
* init/tests/
test_job_ process. c: test_run_ subreaper( ): Separate the
prctl(PR_SET_ CHILD_SUBREAPER ) test into a new function and only call
if the running kernel supports that prctl.
* test/test_util_common. c: get_kernel_ version( ): New function. - 1580. By James Hunt
-
* init/tests/
data/upstart- 1.12.json: New test data file.
* test/test_daemon.c: New test utility.
* init/Makefile.am: Add "upstart-1.12.json" .
* init/job.c:
- Updated copyright.
- job_deserialise(): Generalise logic to handle missing pids when
upgrading from a version that does not support PROCESS_SECURITY and
PROCESS_DAEMON_ PARENT.
* init/job_process.c:
- Copyright and comments.
- job_process_terminated( ): Consider job ready when daemons parent
exits, rather than when the requisite number of forks have been
performed (based on lp:~vorlon/upstart/lp.530779-rough-draft)
(LP: #530779).
- job_process_trace_new( ): Corrected comment header.
- job_process_trace_new_ child() : Don't consider job ready once
requisite number of forks have occured any more.
- job_process_trace_fork( ): Save parent process.
* init/process.c:
- Updated copyright.
- process_name(): Added PROCESS_DAEMON_ PARENT for completeness.
- process_from_name( ): Added PROCESS_ DAEMON_ PARENT for completeness.
- process_deserialise_ all(): Generalise logic to handle missing pids
when upgrading from a version that does not support PROCESS_SECURITY and
PROCESS_DAEMON_ PARENT.
- process_type_enum_ to_str( ): Added PROCESS_ DAEMON_ PARENT for completeness.
- process_type_str_ to_enum( ): Added PROCESS_ DAEMON_ PARENT for completeness.
* init/process.h: Comments for ProcessType (which must be kept in order).
* init/tests/test_job_ process. c:
- test_run(): New test:
- "with daemon where parent waits for ultimate child before exiting"
- test_spawn(): Remove temporary files.
- test_kill(): Extra checks.
- test_handler():
- Remove erroneous UPSTART_LOGDIR code - not used by this test.
- Add daemon parent checks.
* init/tests/test_state. c:
- test_job_environ_ upgrade( ): Add additional checks to ensure that
json not containing PROCESS_DAEMON_ PARENT elements correctly deserialises
into empty elements.
- test_daemon_parent_ state() : New test that checks a data file containing
jobs with and without PROCESS_DAEMON_ PARENTS can be deserialised.
* test/Makefile.am: Updated for test_daemon.
* test/test_util_common. c:
- get_test_daemon_ binary( ): New function.
- file_line_count(): New function.
* test/test_util_common. h: TIMED_BLOCK(): New utility macro.
Preview Diff
1 | === modified file 'ChangeLog' | |||
2 | --- ChangeLog 2014-01-08 16:47:16 +0000 | |||
3 | +++ ChangeLog 2014-01-13 13:49:11 +0000 | |||
4 | @@ -1,3 +1,10 @@ | |||
5 | 1 | 2014-01-13 James Hunt <james.hunt@ubuntu.com> | ||
6 | 2 | |||
7 | 3 | * init/tests/test_job_process.c: test_run_subreaper(): Separate the | ||
8 | 4 | prctl(PR_SET_CHILD_SUBREAPER) test into a new function and only call | ||
9 | 5 | if the running kernel supports that prctl. | ||
10 | 6 | * test/test_util_common.c: get_kernel_version(): New function. | ||
11 | 7 | |||
12 | 1 | 2014-01-08 James Hunt <james.hunt@ubuntu.com> | 8 | 2014-01-08 James Hunt <james.hunt@ubuntu.com> |
13 | 2 | 9 | ||
14 | 3 | * init/man/init.5: Explain valid syntax for stanzas | 10 | * init/man/init.5: Explain valid syntax for stanzas |
15 | @@ -36,6 +43,56 @@ | |||
16 | 36 | * init/man/init.5: Provide more detail on setuid and setgid stanzas | 43 | * init/man/init.5: Provide more detail on setuid and setgid stanzas |
17 | 37 | (debian bug#732127). | 44 | (debian bug#732127). |
18 | 38 | 45 | ||
19 | 46 | 2013-12-12 James Hunt <james.hunt@ubuntu.com> | ||
20 | 47 | |||
21 | 48 | * init/tests/data/upstart-1.12.json: New test data file. | ||
22 | 49 | * test/test_daemon.c: New test utility. | ||
23 | 50 | * init/Makefile.am: Add "upstart-1.12.json". | ||
24 | 51 | * init/job.c: | ||
25 | 52 | - Updated copyright. | ||
26 | 53 | - job_deserialise(): Generalise logic to handle missing pids when | ||
27 | 54 | upgrading from a version that does not support PROCESS_SECURITY and | ||
28 | 55 | PROCESS_DAEMON_PARENT. | ||
29 | 56 | * init/job_process.c: | ||
30 | 57 | - Copyright and comments. | ||
31 | 58 | - job_process_terminated(): Consider job ready when daemons parent | ||
32 | 59 | exits, rather than when the requisite number of forks have been | ||
33 | 60 | performed (based on lp:~vorlon/upstart/lp.530779-rough-draft) | ||
34 | 61 | (LP: #530779). | ||
35 | 62 | - job_process_trace_new(): Corrected comment header. | ||
36 | 63 | - job_process_trace_new_child(): Don't consider job ready once | ||
37 | 64 | requisite number of forks have occured any more. | ||
38 | 65 | - job_process_trace_fork(): Save parent process. | ||
39 | 66 | * init/process.c: | ||
40 | 67 | - Updated copyright. | ||
41 | 68 | - process_name(): Added PROCESS_DAEMON_PARENT for completeness. | ||
42 | 69 | - process_from_name(): Added PROCESS_DAEMON_PARENT for completeness. | ||
43 | 70 | - process_deserialise_all(): Generalise logic to handle missing pids | ||
44 | 71 | when upgrading from a version that does not support PROCESS_SECURITY and | ||
45 | 72 | PROCESS_DAEMON_PARENT. | ||
46 | 73 | - process_type_enum_to_str(): Added PROCESS_DAEMON_PARENT for completeness. | ||
47 | 74 | - process_type_str_to_enum(): Added PROCESS_DAEMON_PARENT for completeness. | ||
48 | 75 | * init/process.h: Comments for ProcessType (which must be kept in order). | ||
49 | 76 | * init/tests/test_job_process.c: | ||
50 | 77 | - test_run(): New test: | ||
51 | 78 | - "with daemon where parent waits for ultimate child before exiting" | ||
52 | 79 | - test_spawn(): Remove temporary files. | ||
53 | 80 | - test_kill(): Extra checks. | ||
54 | 81 | - test_handler(): | ||
55 | 82 | - Remove erroneous UPSTART_LOGDIR code - not used by this test. | ||
56 | 83 | - Add daemon parent checks. | ||
57 | 84 | * init/tests/test_state.c: | ||
58 | 85 | - test_job_environ_upgrade(): Add additional checks to ensure that | ||
59 | 86 | json not containing PROCESS_DAEMON_PARENT elements correctly deserialises | ||
60 | 87 | into empty elements. | ||
61 | 88 | - test_daemon_parent_state(): New test that checks a data file containing | ||
62 | 89 | jobs with and without PROCESS_DAEMON_PARENTS can be deserialised. | ||
63 | 90 | * test/Makefile.am: Updated for test_daemon. | ||
64 | 91 | * test/test_util_common.c: | ||
65 | 92 | - get_test_daemon_binary(): New function. | ||
66 | 93 | - file_line_count(): New function. | ||
67 | 94 | * test/test_util_common.h: TIMED_BLOCK(): New utility macro. | ||
68 | 95 | |||
69 | 39 | 2013-11-23 Steve Langasek <steve.langasek@ubuntu.com> | 96 | 2013-11-23 Steve Langasek <steve.langasek@ubuntu.com> |
70 | 40 | 97 | ||
71 | 41 | * init/tests/test_state.c: fix test case to not assume SIGUSR1 == 10; | 98 | * init/tests/test_state.c: fix test case to not assume SIGUSR1 == 10; |
72 | 42 | 99 | ||
73 | === modified file 'init/Makefile.am' | |||
74 | --- init/Makefile.am 2013-11-12 14:00:36 +0000 | |||
75 | +++ init/Makefile.am 2014-01-13 13:49:11 +0000 | |||
76 | @@ -145,7 +145,8 @@ | |||
77 | 145 | $(TEST_DATA_DIR)/upstart-session2.json \ | 145 | $(TEST_DATA_DIR)/upstart-session2.json \ |
78 | 146 | $(TEST_DATA_DIR)/upstart-session-infinity.json \ | 146 | $(TEST_DATA_DIR)/upstart-session-infinity.json \ |
79 | 147 | $(TEST_DATA_DIR)/upstart-1.9.json \ | 147 | $(TEST_DATA_DIR)/upstart-1.9.json \ |
81 | 148 | $(TEST_DATA_DIR)/upstart-1.11.json | 148 | $(TEST_DATA_DIR)/upstart-1.11.json \ |
82 | 149 | $(TEST_DATA_DIR)/upstart-1.12.json | ||
83 | 149 | 150 | ||
84 | 150 | upstart_test_programs = \ | 151 | upstart_test_programs = \ |
85 | 151 | test_system \ | 152 | test_system \ |
86 | 152 | 153 | ||
87 | === modified file 'init/job.c' | |||
88 | --- init/job.c 2013-08-21 11:07:36 +0000 | |||
89 | +++ init/job.c 2014-01-13 13:49:11 +0000 | |||
90 | @@ -2,7 +2,7 @@ | |||
91 | 2 | * | 2 | * |
92 | 3 | * job.c - core state machine of tasks and services | 3 | * job.c - core state machine of tasks and services |
93 | 4 | * | 4 | * |
95 | 5 | * Copyright © 2010,2011 Canonical Ltd. | 5 | * Copyright © 2010-2013 Canonical Ltd. |
96 | 6 | * Author: Scott James Remnant <scott@netsplit.com>. | 6 | * Author: Scott James Remnant <scott@netsplit.com>. |
97 | 7 | * | 7 | * |
98 | 8 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
99 | @@ -2015,20 +2015,24 @@ | |||
100 | 2015 | if (ret < 0) | 2015 | if (ret < 0) |
101 | 2016 | goto error; | 2016 | goto error; |
102 | 2017 | 2017 | ||
106 | 2018 | /* If we are missing one, we're probably importing from a | 2018 | /* If we are missing entries, we're probably upgrading from a |
107 | 2019 | * previous version that didn't include PROCESS_SECURITY. | 2019 | * previous version that didn't include PROCESS_SECURITY or |
108 | 2020 | * Simply add the missing one. | 2020 | * PROCESS_DAEMON_PARENT. So, set those as null entries. |
109 | 2021 | * | ||
110 | 2022 | * Downgrades are handled by simply ignoring pids beyond | ||
111 | 2023 | * PROCESS_LAST. | ||
112 | 2021 | */ | 2024 | */ |
114 | 2022 | if (len == PROCESS_LAST - 1) { | 2025 | if (len < PROCESS_LAST) { |
115 | 2026 | int missing; | ||
116 | 2027 | |||
117 | 2023 | job->pid = nih_realloc (job->pid, job, sizeof (pid_t) * PROCESS_LAST); | 2028 | job->pid = nih_realloc (job->pid, job, sizeof (pid_t) * PROCESS_LAST); |
118 | 2024 | 2029 | ||
119 | 2025 | if (! job->pid) | 2030 | if (! job->pid) |
120 | 2026 | goto error; | 2031 | goto error; |
121 | 2027 | 2032 | ||
126 | 2028 | job->pid[PROCESS_LAST - 1] = 0; | 2033 | for (missing = len; missing < PROCESS_LAST; missing++) { |
127 | 2029 | 2034 | job->pid[missing] = 0; | |
128 | 2030 | } else if (len != PROCESS_LAST) { | 2035 | } |
125 | 2031 | goto error; | ||
129 | 2032 | } | 2036 | } |
130 | 2033 | 2037 | ||
131 | 2034 | if (! state_get_json_int_var_to_obj (json, job, trace_forks)) | 2038 | if (! state_get_json_int_var_to_obj (json, job, trace_forks)) |
132 | @@ -2047,7 +2051,7 @@ | |||
133 | 2047 | if (! state_check_json_type (json_logs, array)) | 2051 | if (! state_check_json_type (json_logs, array)) |
134 | 2048 | goto error; | 2052 | goto error; |
135 | 2049 | 2053 | ||
137 | 2050 | for (int process = 0; process < PROCESS_LAST; process++) { | 2054 | for (size_t process = 0; process < PROCESS_LAST; process++) { |
138 | 2051 | json_object *json_log; | 2055 | json_object *json_log; |
139 | 2052 | 2056 | ||
140 | 2053 | json_log = json_object_array_get_idx (json_logs, process); | 2057 | json_log = json_object_array_get_idx (json_logs, process); |
141 | @@ -2058,15 +2062,10 @@ | |||
142 | 2058 | */ | 2062 | */ |
143 | 2059 | job->log[process] = log_deserialise (job->log, json_log); | 2063 | job->log[process] = log_deserialise (job->log, json_log); |
144 | 2060 | } else { | 2064 | } else { |
148 | 2061 | /* If we are missing one, we're probably importing from a | 2065 | /* Handle upgrade scenario where process entries are |
149 | 2062 | * previous version that didn't include PROCESS_SECURITY. | 2066 | * missing from the JSON. |
147 | 2063 | * Simply ignore the missing one. | ||
150 | 2064 | */ | 2067 | */ |
156 | 2065 | if (process == PROCESS_LAST - 1) { | 2068 | job->log[process] = NULL; |
152 | 2066 | job->log[process] = NULL; | ||
153 | 2067 | } else { | ||
154 | 2068 | goto error; | ||
155 | 2069 | } | ||
157 | 2070 | } | 2069 | } |
158 | 2071 | } | 2070 | } |
159 | 2072 | 2071 | ||
160 | 2073 | 2072 | ||
161 | === modified file 'init/job_process.c' | |||
162 | --- init/job_process.c 2013-11-03 02:54:03 +0000 | |||
163 | +++ init/job_process.c 2014-01-13 13:49:11 +0000 | |||
164 | @@ -2,7 +2,7 @@ | |||
165 | 2 | * | 2 | * |
166 | 3 | * job_process.c - job process handling | 3 | * job_process.c - job process handling |
167 | 4 | * | 4 | * |
169 | 5 | * Copyright © 2011 Canonical Ltd. | 5 | * Copyright © 2011-2013 Canonical Ltd. |
170 | 6 | * Author: Scott James Remnant <scott@netsplit.com>. | 6 | * Author: Scott James Remnant <scott@netsplit.com>. |
171 | 7 | * | 7 | * |
172 | 8 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
173 | @@ -1583,6 +1583,11 @@ | |||
174 | 1583 | || (job->state == JOB_POST_START) | 1583 | || (job->state == JOB_POST_START) |
175 | 1584 | || (job->state == JOB_PRE_STOP)); | 1584 | || (job->state == JOB_PRE_STOP)); |
176 | 1585 | 1585 | ||
177 | 1586 | /* If the final main process dies, we no longer | ||
178 | 1587 | * care if there's a daemon parent running. | ||
179 | 1588 | */ | ||
180 | 1589 | job->pid[PROCESS_DAEMON_PARENT] = 0; | ||
181 | 1590 | |||
182 | 1586 | /* We don't change the state if we're in post-start and there's | 1591 | /* We don't change the state if we're in post-start and there's |
183 | 1587 | * a post-start process running, or if we're in pre-stop and | 1592 | * a post-start process running, or if we're in pre-stop and |
184 | 1588 | * there's a pre-stop process running; we wait for those to | 1593 | * there's a pre-stop process running; we wait for those to |
185 | @@ -1682,6 +1687,28 @@ | |||
186 | 1682 | stop = TRUE; | 1687 | stop = TRUE; |
187 | 1683 | } | 1688 | } |
188 | 1684 | break; | 1689 | break; |
189 | 1690 | case PROCESS_DAEMON_PARENT: | ||
190 | 1691 | nih_assert (job->state == JOB_SPAWNED); | ||
191 | 1692 | |||
192 | 1693 | /* If we have a daemon parent, that can only mean that | ||
193 | 1694 | * this is no longer the main process. So we don't care | ||
194 | 1695 | * about exit status or anything else, we just either record | ||
195 | 1696 | * that the process is gone or, if we've seen all the forks | ||
196 | 1697 | * we expect, move the process straight to JOB_RUNNING. */ | ||
197 | 1698 | nih_assert (job->pid[PROCESS_MAIN] > 0); | ||
198 | 1699 | |||
199 | 1700 | switch (job->class->expect) { | ||
200 | 1701 | case EXPECT_FORK: | ||
201 | 1702 | state = TRUE; | ||
202 | 1703 | break; | ||
203 | 1704 | case EXPECT_DAEMON: | ||
204 | 1705 | state = (job->trace_forks > 1) ? TRUE : FALSE; | ||
205 | 1706 | break; | ||
206 | 1707 | default: | ||
207 | 1708 | nih_assert_not_reached (); | ||
208 | 1709 | } | ||
209 | 1710 | |||
210 | 1711 | break; | ||
211 | 1685 | case PROCESS_PRE_START: | 1712 | case PROCESS_PRE_START: |
212 | 1686 | nih_assert (job->state == JOB_PRE_START); | 1713 | nih_assert (job->state == JOB_PRE_START); |
213 | 1687 | 1714 | ||
214 | @@ -1744,7 +1771,7 @@ | |||
215 | 1744 | job->kill_process = PROCESS_INVALID; | 1771 | job->kill_process = PROCESS_INVALID; |
216 | 1745 | } | 1772 | } |
217 | 1746 | 1773 | ||
219 | 1747 | if (job->class->console == CONSOLE_LOG && job->log[process]) { | 1774 | if (job->class->console == CONSOLE_LOG && job->log[process] && process != PROCESS_DAEMON_PARENT) { |
220 | 1748 | int ret; | 1775 | int ret; |
221 | 1749 | 1776 | ||
222 | 1750 | /* It is imperative that we free the log at this stage to ensure | 1777 | /* It is imperative that we free the log at this stage to ensure |
223 | @@ -1899,9 +1926,8 @@ | |||
224 | 1899 | * @job: job that changed, | 1926 | * @job: job that changed, |
225 | 1900 | * @process: specific process. | 1927 | * @process: specific process. |
226 | 1901 | * | 1928 | * |
230 | 1902 | * This function is called when the traced @process attached to @job calls | 1929 | * This function is called when the traced @process attached to @job is |
231 | 1903 | * its first exec(), still within the Upstart code before passing control | 1930 | * first forked. |
229 | 1904 | * to the new executable. | ||
232 | 1905 | * | 1931 | * |
233 | 1906 | * It sets the options for the trace so that forks and execs are reported. | 1932 | * It sets the options for the trace so that forks and execs are reported. |
234 | 1907 | **/ | 1933 | **/ |
235 | @@ -1984,7 +2010,10 @@ | |||
236 | 1984 | job->pid[process], strerror (errno)); | 2010 | job->pid[process], strerror (errno)); |
237 | 1985 | 2011 | ||
238 | 1986 | job->trace_state = TRACE_NONE; | 2012 | job->trace_state = TRACE_NONE; |
240 | 1987 | job_change_state (job, job_next_state (job)); | 2013 | |
241 | 2014 | /* Note that we don't change state here, since we need | ||
242 | 2015 | * to wait for the ultimate parent to exit. | ||
243 | 2016 | */ | ||
244 | 1988 | return; | 2017 | return; |
245 | 1989 | } | 2018 | } |
246 | 1990 | 2019 | ||
247 | @@ -2073,6 +2102,12 @@ | |||
248 | 2073 | job_name (job), process_name (process), | 2102 | job_name (job), process_name (process), |
249 | 2074 | job->pid[process], strerror (errno)); | 2103 | job->pid[process], strerror (errno)); |
250 | 2075 | 2104 | ||
251 | 2105 | /* Record the pid of the parent process so we can check when it | ||
252 | 2106 | * exits. | ||
253 | 2107 | */ | ||
254 | 2108 | if (job->pid[PROCESS_DAEMON_PARENT] == 0) | ||
255 | 2109 | job->pid[PROCESS_DAEMON_PARENT] = job->pid[process]; | ||
256 | 2110 | |||
257 | 2076 | /* Update the process we're supervising which is about to get SIGSTOP | 2111 | /* Update the process we're supervising which is about to get SIGSTOP |
258 | 2077 | * so set the trace options to capture it. | 2112 | * so set the trace options to capture it. |
259 | 2078 | */ | 2113 | */ |
260 | 2079 | 2114 | ||
261 | === modified file 'init/process.c' | |||
262 | --- init/process.c 2013-05-23 17:16:03 +0000 | |||
263 | +++ init/process.c 2014-01-13 13:49:11 +0000 | |||
264 | @@ -2,7 +2,7 @@ | |||
265 | 2 | * | 2 | * |
266 | 3 | * process.c - process definition handling | 3 | * process.c - process definition handling |
267 | 4 | * | 4 | * |
269 | 5 | * Copyright © 2009 Canonical Ltd. | 5 | * Copyright © 2009-2013 Canonical Ltd. |
270 | 6 | * Author: Scott James Remnant <scott@netsplit.com>. | 6 | * Author: Scott James Remnant <scott@netsplit.com>. |
271 | 7 | * | 7 | * |
272 | 8 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
273 | @@ -88,6 +88,8 @@ | |||
274 | 88 | return N_("post-stop"); | 88 | return N_("post-stop"); |
275 | 89 | case PROCESS_SECURITY: | 89 | case PROCESS_SECURITY: |
276 | 90 | return N_("security"); | 90 | return N_("security"); |
277 | 91 | case PROCESS_DAEMON_PARENT: | ||
278 | 92 | return N_("daemon-parent"); | ||
279 | 91 | default: | 93 | default: |
280 | 92 | return NULL; | 94 | return NULL; |
281 | 93 | } | 95 | } |
282 | @@ -118,6 +120,8 @@ | |||
283 | 118 | return PROCESS_POST_STOP; | 120 | return PROCESS_POST_STOP; |
284 | 119 | } else if (! strcmp (process, "security")) { | 121 | } else if (! strcmp (process, "security")) { |
285 | 120 | return PROCESS_SECURITY; | 122 | return PROCESS_SECURITY; |
286 | 123 | } else if (! strcmp (process, "daemon-parent")) { | ||
287 | 124 | return PROCESS_DAEMON_PARENT; | ||
288 | 121 | } else { | 125 | } else { |
289 | 122 | return -1; | 126 | return -1; |
290 | 123 | } | 127 | } |
291 | @@ -262,6 +266,7 @@ | |||
292 | 262 | { | 266 | { |
293 | 263 | json_object *json_processes; | 267 | json_object *json_processes; |
294 | 264 | int i; | 268 | int i; |
295 | 269 | int len; | ||
296 | 265 | 270 | ||
297 | 266 | nih_assert (json); | 271 | nih_assert (json); |
298 | 267 | nih_assert (parent); | 272 | nih_assert (parent); |
299 | @@ -275,14 +280,28 @@ | |||
300 | 275 | if (! state_check_json_type (json_processes, array)) | 280 | if (! state_check_json_type (json_processes, array)) |
301 | 276 | goto error; | 281 | goto error; |
302 | 277 | 282 | ||
304 | 278 | for (i = 0; i < json_object_array_length (json_processes); i++) { | 283 | len = json_object_array_length (json_processes); |
305 | 284 | |||
306 | 285 | /* Note that downgrades (where we are attempting to restore | ||
307 | 286 | * state from a newer init which contains additional processes) | ||
308 | 287 | * are handled by simply ignoring any extra processes beyond | ||
309 | 288 | * PROCESS_LAST. | ||
310 | 289 | */ | ||
311 | 290 | for (i = 0; i < PROCESS_LAST; i++) { | ||
312 | 279 | json_object *json_process; | 291 | json_object *json_process; |
313 | 280 | 292 | ||
314 | 281 | nih_assert (i <= PROCESS_LAST); | ||
315 | 282 | |||
316 | 283 | json_process = json_object_array_get_idx (json_processes, i); | 293 | json_process = json_object_array_get_idx (json_processes, i); |
319 | 284 | if (! json_process) | 294 | if (! json_process) { |
320 | 285 | goto error; | 295 | if (len < PROCESS_LAST) { |
321 | 296 | /* Handle upgrade scenario where entries | ||
322 | 297 | * may be missing. | ||
323 | 298 | */ | ||
324 | 299 | processes[i] = NULL; | ||
325 | 300 | continue; | ||
326 | 301 | } else { | ||
327 | 302 | goto error; | ||
328 | 303 | } | ||
329 | 304 | } | ||
330 | 286 | 305 | ||
331 | 287 | if (! state_check_json_type (json_process, object)) | 306 | if (! state_check_json_type (json_process, object)) |
332 | 288 | goto error; | 307 | goto error; |
333 | @@ -316,6 +335,7 @@ | |||
334 | 316 | state_enum_to_str (PROCESS_PRE_STOP, type); | 335 | state_enum_to_str (PROCESS_PRE_STOP, type); |
335 | 317 | state_enum_to_str (PROCESS_POST_STOP, type); | 336 | state_enum_to_str (PROCESS_POST_STOP, type); |
336 | 318 | state_enum_to_str (PROCESS_SECURITY, type); | 337 | state_enum_to_str (PROCESS_SECURITY, type); |
337 | 338 | state_enum_to_str (PROCESS_DAEMON_PARENT, type); | ||
338 | 319 | 339 | ||
339 | 320 | return NULL; | 340 | return NULL; |
340 | 321 | } | 341 | } |
341 | @@ -341,6 +361,7 @@ | |||
342 | 341 | state_str_to_enum (PROCESS_PRE_STOP, type); | 361 | state_str_to_enum (PROCESS_PRE_STOP, type); |
343 | 342 | state_str_to_enum (PROCESS_POST_STOP, type); | 362 | state_str_to_enum (PROCESS_POST_STOP, type); |
344 | 343 | state_str_to_enum (PROCESS_SECURITY, type); | 363 | state_str_to_enum (PROCESS_SECURITY, type); |
345 | 364 | state_str_to_enum (PROCESS_DAEMON_PARENT, type); | ||
346 | 344 | 365 | ||
347 | 345 | return -1; | 366 | return -1; |
348 | 346 | } | 367 | } |
349 | 347 | 368 | ||
350 | === modified file 'init/process.h' | |||
351 | --- init/process.h 2013-05-15 13:21:54 +0000 | |||
352 | +++ init/process.h 2014-01-13 13:49:11 +0000 | |||
353 | @@ -35,6 +35,11 @@ | |||
354 | 35 | * between an invalid ProcessType and the default value assigned to a | 35 | * between an invalid ProcessType and the default value assigned to a |
355 | 36 | * ProcessType. It also cannot be zero since that would upset iterating | 36 | * ProcessType. It also cannot be zero since that would upset iterating |
356 | 37 | * through the (non-invalid) entries. | 37 | * through the (non-invalid) entries. |
357 | 38 | * | ||
358 | 39 | * XXX: Rules required to ensure correct stateful re-exec behaviour: | ||
359 | 40 | * XXX: | ||
360 | 41 | * XXX: - New process types *MUST* be added just before PROCESS_LAST. | ||
361 | 42 | * XXX: - No ordering change for existing values is allowed. | ||
362 | 38 | **/ | 43 | **/ |
363 | 39 | typedef enum process_type { | 44 | typedef enum process_type { |
364 | 40 | /* initial value denoting no process */ | 45 | /* initial value denoting no process */ |
365 | @@ -46,6 +51,7 @@ | |||
366 | 46 | PROCESS_PRE_STOP, | 51 | PROCESS_PRE_STOP, |
367 | 47 | PROCESS_POST_STOP, | 52 | PROCESS_POST_STOP, |
368 | 48 | PROCESS_SECURITY, | 53 | PROCESS_SECURITY, |
369 | 54 | PROCESS_DAEMON_PARENT, | ||
370 | 49 | PROCESS_LAST, | 55 | PROCESS_LAST, |
371 | 50 | } ProcessType; | 56 | } ProcessType; |
372 | 51 | 57 | ||
373 | 52 | 58 | ||
374 | === added file 'init/tests/data/upstart-1.12.json' | |||
375 | --- init/tests/data/upstart-1.12.json 1970-01-01 00:00:00 +0000 | |||
376 | +++ init/tests/data/upstart-1.12.json 2014-01-13 13:49:11 +0000 | |||
377 | @@ -0,0 +1,21708 @@ | |||
378 | 1 | { | ||
379 | 2 | "job_classes" : [ | ||
380 | 3 | { | ||
381 | 4 | "setgid" : null, | ||
382 | 5 | "deleted" : 0, | ||
383 | 6 | "usage" : null, | ||
384 | 7 | "chroot" : null, | ||
385 | 8 | "author" : "Dmitrijs Ledkovs <dmitrijs.ledkovs@canonical.com>", | ||
386 | 9 | "emits" : [], | ||
387 | 10 | "process" : [ | ||
388 | 11 | { | ||
389 | 12 | "command" : "reload cups", | ||
390 | 13 | "script" : 0 | ||
391 | 14 | }, | ||
392 | 15 | { | ||
393 | 16 | "script" : 0, | ||
394 | 17 | "command" : null | ||
395 | 18 | }, | ||
396 | 19 | { | ||
397 | 20 | "script" : 0, | ||
398 | 21 | "command" : null | ||
399 | 22 | }, | ||
400 | 23 | { | ||
401 | 24 | "script" : 0, | ||
402 | 25 | "command" : null | ||
403 | 26 | }, | ||
404 | 27 | { | ||
405 | 28 | "command" : null, | ||
406 | 29 | "script" : 0 | ||
407 | 30 | }, | ||
408 | 31 | { | ||
409 | 32 | "command" : null, | ||
410 | 33 | "script" : 0 | ||
411 | 34 | }, | ||
412 | 35 | { | ||
413 | 36 | "script" : 0, | ||
414 | 37 | "command" : null | ||
415 | 38 | } | ||
416 | 39 | ], | ||
417 | 40 | "respawn" : 0, | ||
418 | 41 | "description" : "Reload cups, upon starting avahi-daemon to make sure remote queues are populated", | ||
419 | 42 | "chdir" : null, | ||
420 | 43 | "kill_timeout" : 5, | ||
421 | 44 | "expect" : "EXPECT_NONE", | ||
422 | 45 | "apparmor_switch" : null, | ||
423 | 46 | "oom_score_adj" : 0, | ||
424 | 47 | "nice" : -21, | ||
425 | 48 | "debug" : 0, | ||
426 | 49 | "name" : "avahi-cups-reload", | ||
427 | 50 | "setuid" : null, | ||
428 | 51 | "normalexit" : [], | ||
429 | 52 | "respawn_limit" : 10, | ||
430 | 53 | "jobs" : [], | ||
431 | 54 | "kill_signal" : 15, | ||
432 | 55 | "task" : 1, | ||
433 | 56 | "reload_signal" : 1, | ||
434 | 57 | "session" : 0, | ||
435 | 58 | "version" : null, | ||
436 | 59 | "env" : [], | ||
437 | 60 | "umask" : 18, | ||
438 | 61 | "console" : "CONSOLE_LOG", | ||
439 | 62 | "export" : [], | ||
440 | 63 | "respawn_interval" : 5, | ||
441 | 64 | "limits" : [ | ||
442 | 65 | { | ||
443 | 66 | "rlim_cur" : 0, | ||
444 | 67 | "rlim_max" : 0 | ||
445 | 68 | }, | ||
446 | 69 | { | ||
447 | 70 | "rlim_cur" : 0, | ||
448 | 71 | "rlim_max" : 0 | ||
449 | 72 | }, | ||
450 | 73 | { | ||
451 | 74 | "rlim_cur" : 0, | ||
452 | 75 | "rlim_max" : 0 | ||
453 | 76 | }, | ||
454 | 77 | { | ||
455 | 78 | "rlim_cur" : 0, | ||
456 | 79 | "rlim_max" : 0 | ||
457 | 80 | }, | ||
458 | 81 | { | ||
459 | 82 | "rlim_cur" : 0, | ||
460 | 83 | "rlim_max" : 0 | ||
461 | 84 | }, | ||
462 | 85 | { | ||
463 | 86 | "rlim_max" : 0, | ||
464 | 87 | "rlim_cur" : 0 | ||
465 | 88 | }, | ||
466 | 89 | { | ||
467 | 90 | "rlim_cur" : 0, | ||
468 | 91 | "rlim_max" : 0 | ||
469 | 92 | }, | ||
470 | 93 | { | ||
471 | 94 | "rlim_max" : 0, | ||
472 | 95 | "rlim_cur" : 0 | ||
473 | 96 | }, | ||
474 | 97 | { | ||
475 | 98 | "rlim_max" : 0, | ||
476 | 99 | "rlim_cur" : 0 | ||
477 | 100 | }, | ||
478 | 101 | { | ||
479 | 102 | "rlim_max" : 0, | ||
480 | 103 | "rlim_cur" : 0 | ||
481 | 104 | }, | ||
482 | 105 | { | ||
483 | 106 | "rlim_max" : 0, | ||
484 | 107 | "rlim_cur" : 0 | ||
485 | 108 | }, | ||
486 | 109 | { | ||
487 | 110 | "rlim_max" : 0, | ||
488 | 111 | "rlim_cur" : 0 | ||
489 | 112 | }, | ||
490 | 113 | { | ||
491 | 114 | "rlim_cur" : 0, | ||
492 | 115 | "rlim_max" : 0 | ||
493 | 116 | }, | ||
494 | 117 | { | ||
495 | 118 | "rlim_cur" : 0, | ||
496 | 119 | "rlim_max" : 0 | ||
497 | 120 | }, | ||
498 | 121 | { | ||
499 | 122 | "rlim_max" : 0, | ||
500 | 123 | "rlim_cur" : 0 | ||
501 | 124 | }, | ||
502 | 125 | { | ||
503 | 126 | "rlim_cur" : 0, | ||
504 | 127 | "rlim_max" : 0 | ||
505 | 128 | } | ||
506 | 129 | ], | ||
507 | 130 | "instance" : "", | ||
508 | 131 | "start_on" : [ | ||
509 | 132 | { | ||
510 | 133 | "env" : [ | ||
511 | 134 | "avahi-daemon" | ||
512 | 135 | ], | ||
513 | 136 | "value" : 0, | ||
514 | 137 | "name" : "started", | ||
515 | 138 | "type" : "EVENT_MATCH" | ||
516 | 139 | } | ||
517 | 140 | ], | ||
518 | 141 | "path" : "/com/ubuntu/Upstart/jobs/avahi_2dcups_2dreload" | ||
519 | 142 | }, | ||
520 | 143 | { | ||
521 | 144 | "version" : null, | ||
522 | 145 | "env" : [], | ||
523 | 146 | "umask" : 18, | ||
524 | 147 | "respawn_interval" : 5, | ||
525 | 148 | "limits" : [ | ||
526 | 149 | { | ||
527 | 150 | "rlim_cur" : 0, | ||
528 | 151 | "rlim_max" : 0 | ||
529 | 152 | }, | ||
530 | 153 | { | ||
531 | 154 | "rlim_cur" : 0, | ||
532 | 155 | "rlim_max" : 0 | ||
533 | 156 | }, | ||
534 | 157 | { | ||
535 | 158 | "rlim_cur" : 0, | ||
536 | 159 | "rlim_max" : 0 | ||
537 | 160 | }, | ||
538 | 161 | { | ||
539 | 162 | "rlim_cur" : 0, | ||
540 | 163 | "rlim_max" : 0 | ||
541 | 164 | }, | ||
542 | 165 | { | ||
543 | 166 | "rlim_max" : 0, | ||
544 | 167 | "rlim_cur" : 0 | ||
545 | 168 | }, | ||
546 | 169 | { | ||
547 | 170 | "rlim_cur" : 0, | ||
548 | 171 | "rlim_max" : 0 | ||
549 | 172 | }, | ||
550 | 173 | { | ||
551 | 174 | "rlim_cur" : 0, | ||
552 | 175 | "rlim_max" : 0 | ||
553 | 176 | }, | ||
554 | 177 | { | ||
555 | 178 | "rlim_max" : 0, | ||
556 | 179 | "rlim_cur" : 0 | ||
557 | 180 | }, | ||
558 | 181 | { | ||
559 | 182 | "rlim_cur" : 0, | ||
560 | 183 | "rlim_max" : 0 | ||
561 | 184 | }, | ||
562 | 185 | { | ||
563 | 186 | "rlim_cur" : 0, | ||
564 | 187 | "rlim_max" : 0 | ||
565 | 188 | }, | ||
566 | 189 | { | ||
567 | 190 | "rlim_cur" : 0, | ||
568 | 191 | "rlim_max" : 0 | ||
569 | 192 | }, | ||
570 | 193 | { | ||
571 | 194 | "rlim_max" : 0, | ||
572 | 195 | "rlim_cur" : 0 | ||
573 | 196 | }, | ||
574 | 197 | { | ||
575 | 198 | "rlim_max" : 0, | ||
576 | 199 | "rlim_cur" : 0 | ||
577 | 200 | }, | ||
578 | 201 | { | ||
579 | 202 | "rlim_cur" : 0, | ||
580 | 203 | "rlim_max" : 0 | ||
581 | 204 | }, | ||
582 | 205 | { | ||
583 | 206 | "rlim_max" : 0, | ||
584 | 207 | "rlim_cur" : 0 | ||
585 | 208 | }, | ||
586 | 209 | { | ||
587 | 210 | "rlim_cur" : 0, | ||
588 | 211 | "rlim_max" : 0 | ||
589 | 212 | } | ||
590 | 213 | ], | ||
591 | 214 | "instance" : "", | ||
592 | 215 | "start_on" : [ | ||
593 | 216 | { | ||
594 | 217 | "name" : "filesystem", | ||
595 | 218 | "value" : 0, | ||
596 | 219 | "type" : "EVENT_MATCH" | ||
597 | 220 | }, | ||
598 | 221 | { | ||
599 | 222 | "env" : [ | ||
600 | 223 | "dbus" | ||
601 | 224 | ], | ||
602 | 225 | "value" : 0, | ||
603 | 226 | "name" : "started", | ||
604 | 227 | "type" : "EVENT_MATCH" | ||
605 | 228 | }, | ||
606 | 229 | { | ||
607 | 230 | "type" : "EVENT_AND", | ||
608 | 231 | "value" : 0 | ||
609 | 232 | } | ||
610 | 233 | ], | ||
611 | 234 | "path" : "/com/ubuntu/Upstart/jobs/avahi_2ddaemon", | ||
612 | 235 | "console" : "CONSOLE_LOG", | ||
613 | 236 | "export" : [], | ||
614 | 237 | "setuid" : null, | ||
615 | 238 | "normalexit" : [], | ||
616 | 239 | "oom_score_adj" : 0, | ||
617 | 240 | "nice" : -21, | ||
618 | 241 | "debug" : 0, | ||
619 | 242 | "name" : "avahi-daemon", | ||
620 | 243 | "kill_signal" : 15, | ||
621 | 244 | "task" : 0, | ||
622 | 245 | "reload_signal" : 1, | ||
623 | 246 | "session" : 0, | ||
624 | 247 | "respawn_limit" : 10, | ||
625 | 248 | "jobs" : [ | ||
626 | 249 | { | ||
627 | 250 | "failed_process" : "PROCESS_INVALID", | ||
628 | 251 | "stop_env" : [], | ||
629 | 252 | "log" : [ | ||
630 | 253 | { | ||
631 | 254 | "path" : null | ||
632 | 255 | }, | ||
633 | 256 | { | ||
634 | 257 | "path" : null | ||
635 | 258 | }, | ||
636 | 259 | { | ||
637 | 260 | "path" : null | ||
638 | 261 | }, | ||
639 | 262 | { | ||
640 | 263 | "path" : null | ||
641 | 264 | }, | ||
642 | 265 | { | ||
643 | 266 | "path" : null | ||
644 | 267 | }, | ||
645 | 268 | { | ||
646 | 269 | "path" : null | ||
647 | 270 | }, | ||
648 | 271 | { | ||
649 | 272 | "path" : null | ||
650 | 273 | } | ||
651 | 274 | ], | ||
652 | 275 | "name" : "", | ||
653 | 276 | "exit_status" : 0, | ||
654 | 277 | "trace_forks" : 2, | ||
655 | 278 | "stop_on" : [ | ||
656 | 279 | { | ||
657 | 280 | "env" : [ | ||
658 | 281 | "dbus" | ||
659 | 282 | ], | ||
660 | 283 | "value" : 0, | ||
661 | 284 | "name" : "stopping", | ||
662 | 285 | "type" : "EVENT_MATCH" | ||
663 | 286 | } | ||
664 | 287 | ], | ||
665 | 288 | "trace_state" : "TRACE_NONE", | ||
666 | 289 | "state" : "JOB_RUNNING", | ||
667 | 290 | "start_env" : [], | ||
668 | 291 | "kill_process" : "PROCESS_INVALID", | ||
669 | 292 | "pid" : [ | ||
670 | 293 | 806, | ||
671 | 294 | 0, | ||
672 | 295 | 0, | ||
673 | 296 | 0, | ||
674 | 297 | 0, | ||
675 | 298 | 0, | ||
676 | 299 | 0 | ||
677 | 300 | ], | ||
678 | 301 | "goal" : "JOB_START", | ||
679 | 302 | "fds" : [], | ||
680 | 303 | "env" : [ | ||
681 | 304 | "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin", | ||
682 | 305 | "TERM=linux", | ||
683 | 306 | "JOB=dbus", | ||
684 | 307 | "INSTANCE=", | ||
685 | 308 | "UPSTART_EVENTS=filesystem started" | ||
686 | 309 | ], | ||
687 | 310 | "respawn_count" : 0, | ||
688 | 311 | "respawn_time" : 0, | ||
689 | 312 | "path" : "/com/ubuntu/Upstart/jobs/avahi_2ddaemon/_", | ||
690 | 313 | "failed" : 0 | ||
691 | 314 | } | ||
692 | 315 | ], | ||
693 | 316 | "kill_timeout" : 5, | ||
694 | 317 | "expect" : "EXPECT_DAEMON", | ||
695 | 318 | "process" : [ | ||
696 | 319 | { | ||
697 | 320 | "script" : 1, | ||
698 | 321 | "command" : "opts=\"-D\"\n[ -e \"/etc/eucalyptus/avahi-daemon.conf\" ] && opts=\"${opts} -f /etc/eucalyptus/avahi-daemon.conf\"\nexec avahi-daemon ${opts}\n" | ||
699 | 322 | }, | ||
700 | 323 | { | ||
701 | 324 | "command" : "/lib/init/apparmor-profile-load usr.sbin.avahi-daemon\n", | ||
702 | 325 | "script" : 1 | ||
703 | 326 | }, | ||
704 | 327 | { | ||
705 | 328 | "command" : null, | ||
706 | 329 | "script" : 0 | ||
707 | 330 | }, | ||
708 | 331 | { | ||
709 | 332 | "script" : 0, | ||
710 | 333 | "command" : null | ||
711 | 334 | }, | ||
712 | 335 | { | ||
713 | 336 | "command" : null, | ||
714 | 337 | "script" : 0 | ||
715 | 338 | }, | ||
716 | 339 | { | ||
717 | 340 | "command" : null, | ||
718 | 341 | "script" : 0 | ||
719 | 342 | }, | ||
720 | 343 | { | ||
721 | 344 | "command" : null, | ||
722 | 345 | "script" : 0 | ||
723 | 346 | } | ||
724 | 347 | ], | ||
725 | 348 | "chdir" : null, | ||
726 | 349 | "respawn" : 1, | ||
727 | 350 | "description" : "mDNS/DNS-SD daemon", | ||
728 | 351 | "apparmor_switch" : null, | ||
729 | 352 | "usage" : null, | ||
730 | 353 | "chroot" : null, | ||
731 | 354 | "author" : null, | ||
732 | 355 | "deleted" : 0, | ||
733 | 356 | "setgid" : null, | ||
734 | 357 | "emits" : [], | ||
735 | 358 | "stop_on" : [ | ||
736 | 359 | { | ||
737 | 360 | "type" : "EVENT_MATCH", | ||
738 | 361 | "value" : 0, | ||
739 | 362 | "name" : "stopping", | ||
740 | 363 | "env" : [ | ||
741 | 364 | "dbus" | ||
742 | 365 | ] | ||
743 | 366 | } | ||
744 | 367 | ] | ||
745 | 368 | }, | ||
746 | 369 | { | ||
747 | 370 | "version" : null, | ||
748 | 371 | "umask" : 18, | ||
749 | 372 | "env" : [], | ||
750 | 373 | "limits" : [ | ||
751 | 374 | { | ||
752 | 375 | "rlim_cur" : 0, | ||
753 | 376 | "rlim_max" : 0 | ||
754 | 377 | }, | ||
755 | 378 | { | ||
756 | 379 | "rlim_cur" : 0, | ||
757 | 380 | "rlim_max" : 0 | ||
758 | 381 | }, | ||
759 | 382 | { | ||
760 | 383 | "rlim_cur" : 0, | ||
761 | 384 | "rlim_max" : 0 | ||
762 | 385 | }, | ||
763 | 386 | { | ||
764 | 387 | "rlim_cur" : 0, | ||
765 | 388 | "rlim_max" : 0 | ||
766 | 389 | }, | ||
767 | 390 | { | ||
768 | 391 | "rlim_max" : 0, | ||
769 | 392 | "rlim_cur" : 0 | ||
770 | 393 | }, | ||
771 | 394 | { | ||
772 | 395 | "rlim_cur" : 0, | ||
773 | 396 | "rlim_max" : 0 | ||
774 | 397 | }, | ||
775 | 398 | { | ||
776 | 399 | "rlim_cur" : 0, | ||
777 | 400 | "rlim_max" : 0 | ||
778 | 401 | }, | ||
779 | 402 | { | ||
780 | 403 | "rlim_max" : 0, | ||
781 | 404 | "rlim_cur" : 0 | ||
782 | 405 | }, | ||
783 | 406 | { | ||
784 | 407 | "rlim_max" : 0, | ||
785 | 408 | "rlim_cur" : 0 | ||
786 | 409 | }, | ||
787 | 410 | { | ||
788 | 411 | "rlim_max" : 0, | ||
789 | 412 | "rlim_cur" : 0 | ||
790 | 413 | }, | ||
791 | 414 | { | ||
792 | 415 | "rlim_max" : 0, | ||
793 | 416 | "rlim_cur" : 0 | ||
794 | 417 | }, | ||
795 | 418 | { | ||
796 | 419 | "rlim_cur" : 0, | ||
797 | 420 | "rlim_max" : 0 | ||
798 | 421 | }, | ||
799 | 422 | { | ||
800 | 423 | "rlim_cur" : 0, | ||
801 | 424 | "rlim_max" : 0 | ||
802 | 425 | }, | ||
803 | 426 | { | ||
804 | 427 | "rlim_max" : 0, | ||
805 | 428 | "rlim_cur" : 0 | ||
806 | 429 | }, | ||
807 | 430 | { | ||
808 | 431 | "rlim_cur" : 0, | ||
809 | 432 | "rlim_max" : 0 | ||
810 | 433 | }, | ||
811 | 434 | { | ||
812 | 435 | "rlim_cur" : 0, | ||
813 | 436 | "rlim_max" : 0 | ||
814 | 437 | } | ||
815 | 438 | ], | ||
816 | 439 | "start_on" : [ | ||
817 | 440 | { | ||
818 | 441 | "env" : [ | ||
819 | 442 | "MOUNTPOINT=/sys/fs/cgroup" | ||
820 | 443 | ], | ||
821 | 444 | "value" : 0, | ||
822 | 445 | "name" : "mounted", | ||
823 | 446 | "type" : "EVENT_MATCH" | ||
824 | 447 | } | ||
825 | 448 | ], | ||
826 | 449 | "instance" : "", | ||
827 | 450 | "path" : "/com/ubuntu/Upstart/jobs/cgroup_2dlite", | ||
828 | 451 | "respawn_interval" : 5, | ||
829 | 452 | "export" : [], | ||
830 | 453 | "console" : "CONSOLE_LOG", | ||
831 | 454 | "normalexit" : [], | ||
832 | 455 | "setuid" : null, | ||
833 | 456 | "debug" : 0, | ||
834 | 457 | "name" : "cgroup-lite", | ||
835 | 458 | "nice" : -21, | ||
836 | 459 | "oom_score_adj" : 0, | ||
837 | 460 | "session" : 0, | ||
838 | 461 | "reload_signal" : 1, | ||
839 | 462 | "task" : 0, | ||
840 | 463 | "kill_signal" : 15, | ||
841 | 464 | "respawn_limit" : 10, | ||
842 | 465 | "jobs" : [ | ||
843 | 466 | { | ||
844 | 467 | "exit_status" : 0, | ||
845 | 468 | "name" : "", | ||
846 | 469 | "stop_env" : [], | ||
847 | 470 | "failed_process" : "PROCESS_INVALID", | ||
848 | 471 | "log" : [ | ||
849 | 472 | { | ||
850 | 473 | "path" : null | ||
851 | 474 | }, | ||
852 | 475 | { | ||
853 | 476 | "path" : null | ||
854 | 477 | }, | ||
855 | 478 | { | ||
856 | 479 | "path" : null | ||
857 | 480 | }, | ||
858 | 481 | { | ||
859 | 482 | "path" : null | ||
860 | 483 | }, | ||
861 | 484 | { | ||
862 | 485 | "path" : null | ||
863 | 486 | }, | ||
864 | 487 | { | ||
865 | 488 | "path" : null | ||
866 | 489 | }, | ||
867 | 490 | { | ||
868 | 491 | "path" : null | ||
869 | 492 | } | ||
870 | 493 | ], | ||
871 | 494 | "goal" : "JOB_START", | ||
872 | 495 | "kill_process" : "PROCESS_INVALID", | ||
873 | 496 | "start_env" : [], | ||
874 | 497 | "pid" : [ | ||
875 | 498 | 0, | ||
876 | 499 | 0, | ||
877 | 500 | 0, | ||
878 | 501 | 0, | ||
879 | 502 | 0, | ||
880 | 503 | 0, | ||
881 | 504 | 0 | ||
882 | 505 | ], | ||
883 | 506 | "trace_state" : "TRACE_NONE", | ||
884 | 507 | "state" : "JOB_RUNNING", | ||
885 | 508 | "trace_forks" : 0, | ||
886 | 509 | "env" : [ | ||
887 | 510 | "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin", | ||
888 | 511 | "TERM=linux", | ||
889 | 512 | "DEVICE=none", | ||
890 | 513 | "MOUNTPOINT=/sys/fs/cgroup", | ||
891 | 514 | "TYPE=tmpfs", | ||
892 | 515 | "OPTIONS=optional,uid=0,gid=0,mode=0755,size=1024", | ||
893 | 516 | "UPSTART_EVENTS=mounted" | ||
894 | 517 | ], | ||
895 | 518 | "fds" : [], | ||
896 | 519 | "path" : "/com/ubuntu/Upstart/jobs/cgroup_2dlite/_", | ||
897 | 520 | "failed" : 0, | ||
898 | 521 | "respawn_count" : 0, | ||
899 | 522 | "respawn_time" : 0 | ||
900 | 523 | } | ||
901 | 524 | ], | ||
902 | 525 | "expect" : "EXPECT_NONE", | ||
903 | 526 | "kill_timeout" : 5, | ||
904 | 527 | "description" : "mount available cgroup filesystems", | ||
905 | 528 | "respawn" : 0, | ||
906 | 529 | "chdir" : null, | ||
907 | 530 | "process" : [ | ||
908 | 531 | { | ||
909 | 532 | "command" : null, | ||
910 | 533 | "script" : 0 | ||
911 | 534 | }, | ||
912 | 535 | { | ||
913 | 536 | "script" : 1, | ||
914 | 537 | "command" : "test -x /bin/cgroups-mount || { stop; exit 0; }\ntest -d /sys/fs/cgroup || { stop; exit 0; }\n/bin/cgroups-mount\n" | ||
915 | 538 | }, | ||
916 | 539 | { | ||
917 | 540 | "command" : null, | ||
918 | 541 | "script" : 0 | ||
919 | 542 | }, | ||
920 | 543 | { | ||
921 | 544 | "script" : 0, | ||
922 | 545 | "command" : null | ||
923 | 546 | }, | ||
924 | 547 | { | ||
925 | 548 | "script" : 1, | ||
926 | 549 | "command" : "if [ -x /bin/cgroups-umount ]\nthen\n\t/bin/cgroups-umount\nfi\n" | ||
927 | 550 | }, | ||
928 | 551 | { | ||
929 | 552 | "script" : 0, | ||
930 | 553 | "command" : null | ||
931 | 554 | }, | ||
932 | 555 | { | ||
933 | 556 | "command" : null, | ||
934 | 557 | "script" : 0 | ||
935 | 558 | } | ||
936 | 559 | ], | ||
937 | 560 | "apparmor_switch" : null, | ||
938 | 561 | "author" : "Serge Hallyn <serge.hallyn@canonical.com>", | ||
939 | 562 | "usage" : null, | ||
940 | 563 | "chroot" : null, | ||
941 | 564 | "deleted" : 0, | ||
942 | 565 | "setgid" : null, | ||
943 | 566 | "emits" : [] | ||
944 | 567 | }, | ||
945 | 568 | { | ||
946 | 569 | "emits" : [], | ||
947 | 570 | "chroot" : null, | ||
948 | 571 | "usage" : null, | ||
949 | 572 | "author" : null, | ||
950 | 573 | "deleted" : 0, | ||
951 | 574 | "setgid" : null, | ||
952 | 575 | "apparmor_switch" : null, | ||
953 | 576 | "kill_timeout" : 5, | ||
954 | 577 | "expect" : "EXPECT_NONE", | ||
955 | 578 | "process" : [ | ||
956 | 579 | { | ||
957 | 580 | "script" : 1, | ||
958 | 581 | "command" : "PID=$(status mountall 2>/dev/null | sed -e '/start\\/running,/{s/.*,[^0-9]*//;q};d')\n[ -n \"$PID\" ] && kill -USR1 $PID || true\n" | ||
959 | 582 | }, | ||
960 | 583 | { | ||
961 | 584 | "script" : 0, | ||
962 | 585 | "command" : null | ||
963 | 586 | }, | ||
964 | 587 | { | ||
965 | 588 | "command" : null, | ||
966 | 589 | "script" : 0 | ||
967 | 590 | }, | ||
968 | 591 | { | ||
969 | 592 | "command" : null, | ||
970 | 593 | "script" : 0 | ||
971 | 594 | }, | ||
972 | 595 | { | ||
973 | 596 | "script" : 0, | ||
974 | 597 | "command" : null | ||
975 | 598 | }, | ||
976 | 599 | { | ||
977 | 600 | "command" : null, | ||
978 | 601 | "script" : 0 | ||
979 | 602 | }, | ||
980 | 603 | { | ||
981 | 604 | "script" : 0, | ||
982 | 605 | "command" : null | ||
983 | 606 | } | ||
984 | 607 | ], | ||
985 | 608 | "respawn" : 0, | ||
986 | 609 | "description" : "Mount network filesystems", | ||
987 | 610 | "chdir" : null, | ||
988 | 611 | "kill_signal" : 15, | ||
989 | 612 | "task" : 1, | ||
990 | 613 | "reload_signal" : 1, | ||
991 | 614 | "session" : 0, | ||
992 | 615 | "jobs" : [], | ||
993 | 616 | "respawn_limit" : 10, | ||
994 | 617 | "normalexit" : [], | ||
995 | 618 | "setuid" : null, | ||
996 | 619 | "nice" : -21, | ||
997 | 620 | "oom_score_adj" : 0, | ||
998 | 621 | "name" : "mountall-net", | ||
999 | 622 | "debug" : 0, | ||
1000 | 623 | "respawn_interval" : 5, | ||
1001 | 624 | "path" : "/com/ubuntu/Upstart/jobs/mountall_2dnet", | ||
1002 | 625 | "limits" : [ | ||
1003 | 626 | { | ||
1004 | 627 | "rlim_max" : 0, | ||
1005 | 628 | "rlim_cur" : 0 | ||
1006 | 629 | }, | ||
1007 | 630 | { | ||
1008 | 631 | "rlim_max" : 0, | ||
1009 | 632 | "rlim_cur" : 0 | ||
1010 | 633 | }, | ||
1011 | 634 | { | ||
1012 | 635 | "rlim_max" : 0, | ||
1013 | 636 | "rlim_cur" : 0 | ||
1014 | 637 | }, | ||
1015 | 638 | { | ||
1016 | 639 | "rlim_cur" : 0, | ||
1017 | 640 | "rlim_max" : 0 | ||
1018 | 641 | }, | ||
1019 | 642 | { | ||
1020 | 643 | "rlim_cur" : 0, | ||
1021 | 644 | "rlim_max" : 0 | ||
1022 | 645 | }, | ||
1023 | 646 | { | ||
1024 | 647 | "rlim_max" : 0, | ||
1025 | 648 | "rlim_cur" : 0 | ||
1026 | 649 | }, | ||
1027 | 650 | { | ||
1028 | 651 | "rlim_max" : 0, | ||
1029 | 652 | "rlim_cur" : 0 | ||
1030 | 653 | }, | ||
1031 | 654 | { | ||
1032 | 655 | "rlim_max" : 0, | ||
1033 | 656 | "rlim_cur" : 0 | ||
1034 | 657 | }, | ||
1035 | 658 | { | ||
1036 | 659 | "rlim_max" : 0, | ||
1037 | 660 | "rlim_cur" : 0 | ||
1038 | 661 | }, | ||
1039 | 662 | { | ||
1040 | 663 | "rlim_max" : 0, | ||
1041 | 664 | "rlim_cur" : 0 | ||
1042 | 665 | }, | ||
1043 | 666 | { | ||
1044 | 667 | "rlim_max" : 0, | ||
1045 | 668 | "rlim_cur" : 0 | ||
1046 | 669 | }, | ||
1047 | 670 | { | ||
1048 | 671 | "rlim_cur" : 0, | ||
1049 | 672 | "rlim_max" : 0 | ||
1050 | 673 | }, | ||
1051 | 674 | { | ||
1052 | 675 | "rlim_max" : 0, | ||
1053 | 676 | "rlim_cur" : 0 | ||
1054 | 677 | }, | ||
1055 | 678 | { | ||
1056 | 679 | "rlim_max" : 0, | ||
1057 | 680 | "rlim_cur" : 0 | ||
1058 | 681 | }, | ||
1059 | 682 | { | ||
1060 | 683 | "rlim_cur" : 0, | ||
1061 | 684 | "rlim_max" : 0 | ||
1062 | 685 | }, | ||
1063 | 686 | { | ||
1064 | 687 | "rlim_cur" : 0, | ||
1065 | 688 | "rlim_max" : 0 | ||
1066 | 689 | } | ||
1067 | 690 | ], | ||
1068 | 691 | "instance" : "", | ||
1069 | 692 | "start_on" : [ | ||
1070 | 693 | { | ||
1071 | 694 | "name" : "net-device-up", | ||
1072 | 695 | "value" : 0, | ||
1073 | 696 | "type" : "EVENT_MATCH" | ||
1074 | 697 | } | ||
1075 | 698 | ], | ||
1076 | 699 | "console" : "CONSOLE_LOG", | ||
1077 | 700 | "export" : [], | ||
1078 | 701 | "umask" : 18, | ||
1079 | 702 | "env" : [], | ||
1080 | 703 | "version" : null | ||
1081 | 704 | }, | ||
1082 | 705 | { | ||
1083 | 706 | "respawn_limit" : 10, | ||
1084 | 707 | "jobs" : [ | ||
1085 | 708 | { | ||
1086 | 709 | "exit_status" : 0, | ||
1087 | 710 | "name" : "", | ||
1088 | 711 | "stop_env" : [], | ||
1089 | 712 | "failed_process" : "PROCESS_INVALID", | ||
1090 | 713 | "log" : [ | ||
1091 | 714 | { | ||
1092 | 715 | "path" : null | ||
1093 | 716 | }, | ||
1094 | 717 | { | ||
1095 | 718 | "path" : null | ||
1096 | 719 | }, | ||
1097 | 720 | { | ||
1098 | 721 | "path" : null | ||
1099 | 722 | }, | ||
1100 | 723 | { | ||
1101 | 724 | "path" : null | ||
1102 | 725 | }, | ||
1103 | 726 | { | ||
1104 | 727 | "path" : null | ||
1105 | 728 | }, | ||
1106 | 729 | { | ||
1107 | 730 | "path" : null | ||
1108 | 731 | }, | ||
1109 | 732 | { | ||
1110 | 733 | "path" : null | ||
1111 | 734 | } | ||
1112 | 735 | ], | ||
1113 | 736 | "goal" : "JOB_START", | ||
1114 | 737 | "kill_process" : "PROCESS_INVALID", | ||
1115 | 738 | "start_env" : [], | ||
1116 | 739 | "pid" : [ | ||
1117 | 740 | 0, | ||
1118 | 741 | 0, | ||
1119 | 742 | 0, | ||
1120 | 743 | 0, | ||
1121 | 744 | 0, | ||
1122 | 745 | 0, | ||
1123 | 746 | 0 | ||
1124 | 747 | ], | ||
1125 | 748 | "trace_state" : "TRACE_NONE", | ||
1126 | 749 | "state" : "JOB_RUNNING", | ||
1127 | 750 | "trace_forks" : 0, | ||
1128 | 751 | "env" : [ | ||
1129 | 752 | "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin", | ||
1130 | 753 | "TERM=linux", | ||
1131 | 754 | "UPSTART_EVENTS=virtual-filesystems" | ||
1132 | 755 | ], | ||
1133 | 756 | "fds" : [], | ||
1134 | 757 | "path" : "/com/ubuntu/Upstart/jobs/mountnfs_2dbootclean_2esh/_", | ||
1135 | 758 | "failed" : 0, | ||
1136 | 759 | "respawn_count" : 0, | ||
1137 | 760 | "respawn_time" : 0 | ||
1138 | 761 | } | ||
1139 | 762 | ], | ||
1140 | 763 | "session" : 0, | ||
1141 | 764 | "reload_signal" : 1, | ||
1142 | 765 | "kill_signal" : 15, | ||
1143 | 766 | "task" : 0, | ||
1144 | 767 | "debug" : 0, | ||
1145 | 768 | "name" : "mountnfs-bootclean.sh", | ||
1146 | 769 | "nice" : -21, | ||
1147 | 770 | "oom_score_adj" : 0, | ||
1148 | 771 | "normalexit" : [], | ||
1149 | 772 | "setuid" : null, | ||
1150 | 773 | "export" : [], | ||
1151 | 774 | "console" : "CONSOLE_LOG", | ||
1152 | 775 | "instance" : "", | ||
1153 | 776 | "limits" : [ | ||
1154 | 777 | { | ||
1155 | 778 | "rlim_max" : 0, | ||
1156 | 779 | "rlim_cur" : 0 | ||
1157 | 780 | }, | ||
1158 | 781 | { | ||
1159 | 782 | "rlim_cur" : 0, | ||
1160 | 783 | "rlim_max" : 0 | ||
1161 | 784 | }, | ||
1162 | 785 | { | ||
1163 | 786 | "rlim_max" : 0, | ||
1164 | 787 | "rlim_cur" : 0 | ||
1165 | 788 | }, | ||
1166 | 789 | { | ||
1167 | 790 | "rlim_max" : 0, | ||
1168 | 791 | "rlim_cur" : 0 | ||
1169 | 792 | }, | ||
1170 | 793 | { | ||
1171 | 794 | "rlim_cur" : 0, | ||
1172 | 795 | "rlim_max" : 0 | ||
1173 | 796 | }, | ||
1174 | 797 | { | ||
1175 | 798 | "rlim_max" : 0, | ||
1176 | 799 | "rlim_cur" : 0 | ||
1177 | 800 | }, | ||
1178 | 801 | { | ||
1179 | 802 | "rlim_max" : 0, | ||
1180 | 803 | "rlim_cur" : 0 | ||
1181 | 804 | }, | ||
1182 | 805 | { | ||
1183 | 806 | "rlim_max" : 0, | ||
1184 | 807 | "rlim_cur" : 0 | ||
1185 | 808 | }, | ||
1186 | 809 | { | ||
1187 | 810 | "rlim_cur" : 0, | ||
1188 | 811 | "rlim_max" : 0 | ||
1189 | 812 | }, | ||
1190 | 813 | { | ||
1191 | 814 | "rlim_cur" : 0, | ||
1192 | 815 | "rlim_max" : 0 | ||
1193 | 816 | }, | ||
1194 | 817 | { | ||
1195 | 818 | "rlim_cur" : 0, | ||
1196 | 819 | "rlim_max" : 0 | ||
1197 | 820 | }, | ||
1198 | 821 | { | ||
1199 | 822 | "rlim_max" : 0, | ||
1200 | 823 | "rlim_cur" : 0 | ||
1201 | 824 | }, | ||
1202 | 825 | { | ||
1203 | 826 | "rlim_max" : 0, | ||
1204 | 827 | "rlim_cur" : 0 | ||
1205 | 828 | }, | ||
1206 | 829 | { | ||
1207 | 830 | "rlim_cur" : 0, | ||
1208 | 831 | "rlim_max" : 0 | ||
1209 | 832 | }, | ||
1210 | 833 | { | ||
1211 | 834 | "rlim_cur" : 0, | ||
1212 | 835 | "rlim_max" : 0 | ||
1213 | 836 | }, | ||
1214 | 837 | { | ||
1215 | 838 | "rlim_cur" : 0, | ||
1216 | 839 | "rlim_max" : 0 | ||
1217 | 840 | } | ||
1218 | 841 | ], | ||
1219 | 842 | "start_on" : [ | ||
1220 | 843 | { | ||
1221 | 844 | "value" : 0, | ||
1222 | 845 | "name" : "virtual-filesystems", | ||
1223 | 846 | "type" : "EVENT_MATCH" | ||
1224 | 847 | } | ||
1225 | 848 | ], | ||
1226 | 849 | "path" : "/com/ubuntu/Upstart/jobs/mountnfs_2dbootclean_2esh", | ||
1227 | 850 | "respawn_interval" : 5, | ||
1228 | 851 | "version" : null, | ||
1229 | 852 | "env" : [], | ||
1230 | 853 | "umask" : 18, | ||
1231 | 854 | "emits" : [], | ||
1232 | 855 | "setgid" : null, | ||
1233 | 856 | "deleted" : 0, | ||
1234 | 857 | "usage" : null, | ||
1235 | 858 | "chroot" : null, | ||
1236 | 859 | "author" : null, | ||
1237 | 860 | "apparmor_switch" : null, | ||
1238 | 861 | "respawn" : 0, | ||
1239 | 862 | "description" : null, | ||
1240 | 863 | "chdir" : null, | ||
1241 | 864 | "process" : [ | ||
1242 | 865 | { | ||
1243 | 866 | "script" : 0, | ||
1244 | 867 | "command" : null | ||
1245 | 868 | }, | ||
1246 | 869 | { | ||
1247 | 870 | "command" : null, | ||
1248 | 871 | "script" : 0 | ||
1249 | 872 | }, | ||
1250 | 873 | { | ||
1251 | 874 | "command" : null, | ||
1252 | 875 | "script" : 0 | ||
1253 | 876 | }, | ||
1254 | 877 | { | ||
1255 | 878 | "command" : null, | ||
1256 | 879 | "script" : 0 | ||
1257 | 880 | }, | ||
1258 | 881 | { | ||
1259 | 882 | "command" : null, | ||
1260 | 883 | "script" : 0 | ||
1261 | 884 | }, | ||
1262 | 885 | { | ||
1263 | 886 | "script" : 0, | ||
1264 | 887 | "command" : null | ||
1265 | 888 | }, | ||
1266 | 889 | { | ||
1267 | 890 | "script" : 0, | ||
1268 | 891 | "command" : null | ||
1269 | 892 | } | ||
1270 | 893 | ], | ||
1271 | 894 | "expect" : "EXPECT_NONE", | ||
1272 | 895 | "kill_timeout" : 5 | ||
1273 | 896 | }, | ||
1274 | 897 | { | ||
1275 | 898 | "process" : [ | ||
1276 | 899 | { | ||
1277 | 900 | "command" : "rm -f /etc/gshadow.lock /etc/shadow.lock /etc/passwd.lock /etc/group.lock", | ||
1278 | 901 | "script" : 0 | ||
1279 | 902 | }, | ||
1280 | 903 | { | ||
1281 | 904 | "command" : null, | ||
1282 | 905 | "script" : 0 | ||
1283 | 906 | }, | ||
1284 | 907 | { | ||
1285 | 908 | "command" : null, | ||
1286 | 909 | "script" : 0 | ||
1287 | 910 | }, | ||
1288 | 911 | { | ||
1289 | 912 | "script" : 0, | ||
1290 | 913 | "command" : null | ||
1291 | 914 | }, | ||
1292 | 915 | { | ||
1293 | 916 | "script" : 0, | ||
1294 | 917 | "command" : null | ||
1295 | 918 | }, | ||
1296 | 919 | { | ||
1297 | 920 | "script" : 0, | ||
1298 | 921 | "command" : null | ||
1299 | 922 | }, | ||
1300 | 923 | { | ||
1301 | 924 | "script" : 0, | ||
1302 | 925 | "command" : null | ||
1303 | 926 | } | ||
1304 | 927 | ], | ||
1305 | 928 | "description" : "Clear passwd locks", | ||
1306 | 929 | "chdir" : null, | ||
1307 | 930 | "respawn" : 0, | ||
1308 | 931 | "kill_timeout" : 5, | ||
1309 | 932 | "expect" : "EXPECT_NONE", | ||
1310 | 933 | "apparmor_switch" : null, | ||
1311 | 934 | "deleted" : 0, | ||
1312 | 935 | "setgid" : null, | ||
1313 | 936 | "usage" : null, | ||
1314 | 937 | "chroot" : null, | ||
1315 | 938 | "author" : null, | ||
1316 | 939 | "emits" : [], | ||
1317 | 940 | "umask" : 18, | ||
1318 | 941 | "env" : [], | ||
1319 | 942 | "version" : null, | ||
1320 | 943 | "console" : "CONSOLE_LOG", | ||
1321 | 944 | "export" : [], | ||
1322 | 945 | "respawn_interval" : 5, | ||
1323 | 946 | "path" : "/com/ubuntu/Upstart/jobs/passwd", | ||
1324 | 947 | "start_on" : [ | ||
1325 | 948 | { | ||
1326 | 949 | "value" : 0, | ||
1327 | 950 | "name" : "filesystem", | ||
1328 | 951 | "type" : "EVENT_MATCH" | ||
1329 | 952 | } | ||
1330 | 953 | ], | ||
1331 | 954 | "limits" : [ | ||
1332 | 955 | { | ||
1333 | 956 | "rlim_max" : 0, | ||
1334 | 957 | "rlim_cur" : 0 | ||
1335 | 958 | }, | ||
1336 | 959 | { | ||
1337 | 960 | "rlim_cur" : 0, | ||
1338 | 961 | "rlim_max" : 0 | ||
1339 | 962 | }, | ||
1340 | 963 | { | ||
1341 | 964 | "rlim_cur" : 0, | ||
1342 | 965 | "rlim_max" : 0 | ||
1343 | 966 | }, | ||
1344 | 967 | { | ||
1345 | 968 | "rlim_max" : 0, | ||
1346 | 969 | "rlim_cur" : 0 | ||
1347 | 970 | }, | ||
1348 | 971 | { | ||
1349 | 972 | "rlim_cur" : 0, | ||
1350 | 973 | "rlim_max" : 0 | ||
1351 | 974 | }, | ||
1352 | 975 | { | ||
1353 | 976 | "rlim_cur" : 0, | ||
1354 | 977 | "rlim_max" : 0 | ||
1355 | 978 | }, | ||
1356 | 979 | { | ||
1357 | 980 | "rlim_max" : 0, | ||
1358 | 981 | "rlim_cur" : 0 | ||
1359 | 982 | }, | ||
1360 | 983 | { | ||
1361 | 984 | "rlim_cur" : 0, | ||
1362 | 985 | "rlim_max" : 0 | ||
1363 | 986 | }, | ||
1364 | 987 | { | ||
1365 | 988 | "rlim_max" : 0, | ||
1366 | 989 | "rlim_cur" : 0 | ||
1367 | 990 | }, | ||
1368 | 991 | { | ||
1369 | 992 | "rlim_cur" : 0, | ||
1370 | 993 | "rlim_max" : 0 | ||
1371 | 994 | }, | ||
1372 | 995 | { | ||
1373 | 996 | "rlim_max" : 0, | ||
1374 | 997 | "rlim_cur" : 0 | ||
1375 | 998 | }, | ||
1376 | 999 | { | ||
1377 | 1000 | "rlim_cur" : 0, | ||
1378 | 1001 | "rlim_max" : 0 | ||
1379 | 1002 | }, | ||
1380 | 1003 | { | ||
1381 | 1004 | "rlim_cur" : 0, | ||
1382 | 1005 | "rlim_max" : 0 | ||
1383 | 1006 | }, | ||
1384 | 1007 | { | ||
1385 | 1008 | "rlim_max" : 0, | ||
1386 | 1009 | "rlim_cur" : 0 | ||
1387 | 1010 | }, | ||
1388 | 1011 | { | ||
1389 | 1012 | "rlim_cur" : 0, | ||
1390 | 1013 | "rlim_max" : 0 | ||
1391 | 1014 | }, | ||
1392 | 1015 | { | ||
1393 | 1016 | "rlim_cur" : 0, | ||
1394 | 1017 | "rlim_max" : 0 | ||
1395 | 1018 | } | ||
1396 | 1019 | ], | ||
1397 | 1020 | "instance" : "", | ||
1398 | 1021 | "nice" : -21, | ||
1399 | 1022 | "oom_score_adj" : 0, | ||
1400 | 1023 | "name" : "passwd", | ||
1401 | 1024 | "debug" : 0, | ||
1402 | 1025 | "normalexit" : [], | ||
1403 | 1026 | "setuid" : null, | ||
1404 | 1027 | "jobs" : [], | ||
1405 | 1028 | "respawn_limit" : 10, | ||
1406 | 1029 | "task" : 1, | ||
1407 | 1030 | "kill_signal" : 15, | ||
1408 | 1031 | "session" : 0, | ||
1409 | 1032 | "reload_signal" : 1 | ||
1410 | 1033 | }, | ||
1411 | 1034 | { | ||
1412 | 1035 | "debug" : 0, | ||
1413 | 1036 | "name" : "rc", | ||
1414 | 1037 | "nice" : -21, | ||
1415 | 1038 | "oom_score_adj" : 0, | ||
1416 | 1039 | "setuid" : null, | ||
1417 | 1040 | "normalexit" : [], | ||
1418 | 1041 | "respawn_limit" : 10, | ||
1419 | 1042 | "jobs" : [], | ||
1420 | 1043 | "session" : 0, | ||
1421 | 1044 | "reload_signal" : 1, | ||
1422 | 1045 | "task" : 1, | ||
1423 | 1046 | "kill_signal" : 15, | ||
1424 | 1047 | "version" : null, | ||
1425 | 1048 | "umask" : 18, | ||
1426 | 1049 | "env" : [ | ||
1427 | 1050 | "INIT_VERBOSE" | ||
1428 | 1051 | ], | ||
1429 | 1052 | "export" : [ | ||
1430 | 1053 | "RUNLEVEL", | ||
1431 | 1054 | "PREVLEVEL" | ||
1432 | 1055 | ], | ||
1433 | 1056 | "console" : "CONSOLE_OUTPUT", | ||
1434 | 1057 | "limits" : [ | ||
1435 | 1058 | { | ||
1436 | 1059 | "rlim_max" : 0, | ||
1437 | 1060 | "rlim_cur" : 0 | ||
1438 | 1061 | }, | ||
1439 | 1062 | { | ||
1440 | 1063 | "rlim_max" : 0, | ||
1441 | 1064 | "rlim_cur" : 0 | ||
1442 | 1065 | }, | ||
1443 | 1066 | { | ||
1444 | 1067 | "rlim_cur" : 0, | ||
1445 | 1068 | "rlim_max" : 0 | ||
1446 | 1069 | }, | ||
1447 | 1070 | { | ||
1448 | 1071 | "rlim_max" : 0, | ||
1449 | 1072 | "rlim_cur" : 0 | ||
1450 | 1073 | }, | ||
1451 | 1074 | { | ||
1452 | 1075 | "rlim_max" : 0, | ||
1453 | 1076 | "rlim_cur" : 0 | ||
1454 | 1077 | }, | ||
1455 | 1078 | { | ||
1456 | 1079 | "rlim_cur" : 0, | ||
1457 | 1080 | "rlim_max" : 0 | ||
1458 | 1081 | }, | ||
1459 | 1082 | { | ||
1460 | 1083 | "rlim_max" : 0, | ||
1461 | 1084 | "rlim_cur" : 0 | ||
1462 | 1085 | }, | ||
1463 | 1086 | { | ||
1464 | 1087 | "rlim_max" : 0, | ||
1465 | 1088 | "rlim_cur" : 0 | ||
1466 | 1089 | }, | ||
1467 | 1090 | { | ||
1468 | 1091 | "rlim_max" : 0, | ||
1469 | 1092 | "rlim_cur" : 0 | ||
1470 | 1093 | }, | ||
1471 | 1094 | { | ||
1472 | 1095 | "rlim_max" : 0, | ||
1473 | 1096 | "rlim_cur" : 0 | ||
1474 | 1097 | }, | ||
1475 | 1098 | { | ||
1476 | 1099 | "rlim_cur" : 0, | ||
1477 | 1100 | "rlim_max" : 0 | ||
1478 | 1101 | }, | ||
1479 | 1102 | { | ||
1480 | 1103 | "rlim_max" : 0, | ||
1481 | 1104 | "rlim_cur" : 0 | ||
1482 | 1105 | }, | ||
1483 | 1106 | { | ||
1484 | 1107 | "rlim_max" : 0, | ||
1485 | 1108 | "rlim_cur" : 0 | ||
1486 | 1109 | }, | ||
1487 | 1110 | { | ||
1488 | 1111 | "rlim_max" : 0, | ||
1489 | 1112 | "rlim_cur" : 0 | ||
1490 | 1113 | }, | ||
1491 | 1114 | { | ||
1492 | 1115 | "rlim_cur" : 0, | ||
1493 | 1116 | "rlim_max" : 0 | ||
1494 | 1117 | }, | ||
1495 | 1118 | { | ||
1496 | 1119 | "rlim_cur" : 0, | ||
1497 | 1120 | "rlim_max" : 0 | ||
1498 | 1121 | } | ||
1499 | 1122 | ], | ||
1500 | 1123 | "start_on" : [ | ||
1501 | 1124 | { | ||
1502 | 1125 | "env" : [ | ||
1503 | 1126 | "[0123456]" | ||
1504 | 1127 | ], | ||
1505 | 1128 | "type" : "EVENT_MATCH", | ||
1506 | 1129 | "name" : "runlevel", | ||
1507 | 1130 | "value" : 0 | ||
1508 | 1131 | } | ||
1509 | 1132 | ], | ||
1510 | 1133 | "instance" : "", | ||
1511 | 1134 | "path" : "/com/ubuntu/Upstart/jobs/rc", | ||
1512 | 1135 | "respawn_interval" : 5, | ||
1513 | 1136 | "deleted" : 0, | ||
1514 | 1137 | "setgid" : null, | ||
1515 | 1138 | "usage" : null, | ||
1516 | 1139 | "author" : "Scott James Remnant <scott@netsplit.com>", | ||
1517 | 1140 | "chroot" : null, | ||
1518 | 1141 | "stop_on" : [ | ||
1519 | 1142 | { | ||
1520 | 1143 | "env" : [ | ||
1521 | 1144 | "[!$RUNLEVEL]" | ||
1522 | 1145 | ], | ||
1523 | 1146 | "type" : "EVENT_MATCH", | ||
1524 | 1147 | "value" : 0, | ||
1525 | 1148 | "name" : "runlevel" | ||
1526 | 1149 | } | ||
1527 | 1150 | ], | ||
1528 | 1151 | "emits" : [ | ||
1529 | 1152 | "deconfiguring-networking", | ||
1530 | 1153 | "unmounted-remote-filesystems" | ||
1531 | 1154 | ], | ||
1532 | 1155 | "chdir" : null, | ||
1533 | 1156 | "respawn" : 0, | ||
1534 | 1157 | "description" : "System V runlevel compatibility", | ||
1535 | 1158 | "process" : [ | ||
1536 | 1159 | { | ||
1537 | 1160 | "script" : 0, | ||
1538 | 1161 | "command" : "/etc/init.d/rc $RUNLEVEL" | ||
1539 | 1162 | }, | ||
1540 | 1163 | { | ||
1541 | 1164 | "script" : 0, | ||
1542 | 1165 | "command" : null | ||
1543 | 1166 | }, | ||
1544 | 1167 | { | ||
1545 | 1168 | "command" : null, | ||
1546 | 1169 | "script" : 0 | ||
1547 | 1170 | }, | ||
1548 | 1171 | { | ||
1549 | 1172 | "script" : 0, | ||
1550 | 1173 | "command" : null | ||
1551 | 1174 | }, | ||
1552 | 1175 | { | ||
1553 | 1176 | "script" : 0, | ||
1554 | 1177 | "command" : null | ||
1555 | 1178 | }, | ||
1556 | 1179 | { | ||
1557 | 1180 | "script" : 0, | ||
1558 | 1181 | "command" : null | ||
1559 | 1182 | }, | ||
1560 | 1183 | { | ||
1561 | 1184 | "script" : 0, | ||
1562 | 1185 | "command" : null | ||
1563 | 1186 | } | ||
1564 | 1187 | ], | ||
1565 | 1188 | "expect" : "EXPECT_NONE", | ||
1566 | 1189 | "kill_timeout" : 5, | ||
1567 | 1190 | "apparmor_switch" : null | ||
1568 | 1191 | }, | ||
1569 | 1192 | { | ||
1570 | 1193 | "apparmor_switch" : null, | ||
1571 | 1194 | "kill_timeout" : 5, | ||
1572 | 1195 | "expect" : "EXPECT_FORK", | ||
1573 | 1196 | "process" : [ | ||
1574 | 1197 | { | ||
1575 | 1198 | "command" : ". /etc/default/rsyslog\nexec rsyslogd $RSYSLOGD_OPTIONS\n", | ||
1576 | 1199 | "script" : 1 | ||
1577 | 1200 | }, | ||
1578 | 1201 | { | ||
1579 | 1202 | "command" : "/lib/init/apparmor-profile-load usr.sbin.rsyslogd\n", | ||
1580 | 1203 | "script" : 1 | ||
1581 | 1204 | }, | ||
1582 | 1205 | { | ||
1583 | 1206 | "command" : null, | ||
1584 | 1207 | "script" : 0 | ||
1585 | 1208 | }, | ||
1586 | 1209 | { | ||
1587 | 1210 | "command" : null, | ||
1588 | 1211 | "script" : 0 | ||
1589 | 1212 | }, | ||
1590 | 1213 | { | ||
1591 | 1214 | "command" : null, | ||
1592 | 1215 | "script" : 0 | ||
1593 | 1216 | }, | ||
1594 | 1217 | { | ||
1595 | 1218 | "command" : null, | ||
1596 | 1219 | "script" : 0 | ||
1597 | 1220 | }, | ||
1598 | 1221 | { | ||
1599 | 1222 | "script" : 0, | ||
1600 | 1223 | "command" : null | ||
1601 | 1224 | } | ||
1602 | 1225 | ], | ||
1603 | 1226 | "respawn" : 1, | ||
1604 | 1227 | "chdir" : null, | ||
1605 | 1228 | "description" : "system logging daemon", | ||
1606 | 1229 | "emits" : [], | ||
1607 | 1230 | "stop_on" : [ | ||
1608 | 1231 | { | ||
1609 | 1232 | "env" : [ | ||
1610 | 1233 | "[06]" | ||
1611 | 1234 | ], | ||
1612 | 1235 | "name" : "runlevel", | ||
1613 | 1236 | "value" : 0, | ||
1614 | 1237 | "type" : "EVENT_MATCH" | ||
1615 | 1238 | } | ||
1616 | 1239 | ], | ||
1617 | 1240 | "author" : null, | ||
1618 | 1241 | "usage" : null, | ||
1619 | 1242 | "chroot" : null, | ||
1620 | 1243 | "setgid" : null, | ||
1621 | 1244 | "deleted" : 0, | ||
1622 | 1245 | "respawn_interval" : 5, | ||
1623 | 1246 | "instance" : "", | ||
1624 | 1247 | "limits" : [ | ||
1625 | 1248 | { | ||
1626 | 1249 | "rlim_max" : 0, | ||
1627 | 1250 | "rlim_cur" : 0 | ||
1628 | 1251 | }, | ||
1629 | 1252 | { | ||
1630 | 1253 | "rlim_max" : 0, | ||
1631 | 1254 | "rlim_cur" : 0 | ||
1632 | 1255 | }, | ||
1633 | 1256 | { | ||
1634 | 1257 | "rlim_cur" : 0, | ||
1635 | 1258 | "rlim_max" : 0 | ||
1636 | 1259 | }, | ||
1637 | 1260 | { | ||
1638 | 1261 | "rlim_max" : 0, | ||
1639 | 1262 | "rlim_cur" : 0 | ||
1640 | 1263 | }, | ||
1641 | 1264 | { | ||
1642 | 1265 | "rlim_cur" : 0, | ||
1643 | 1266 | "rlim_max" : 0 | ||
1644 | 1267 | }, | ||
1645 | 1268 | { | ||
1646 | 1269 | "rlim_cur" : 0, | ||
1647 | 1270 | "rlim_max" : 0 | ||
1648 | 1271 | }, | ||
1649 | 1272 | { | ||
1650 | 1273 | "rlim_cur" : 0, | ||
1651 | 1274 | "rlim_max" : 0 | ||
1652 | 1275 | }, | ||
1653 | 1276 | { | ||
1654 | 1277 | "rlim_max" : 0, | ||
1655 | 1278 | "rlim_cur" : 0 | ||
1656 | 1279 | }, | ||
1657 | 1280 | { | ||
1658 | 1281 | "rlim_cur" : 0, | ||
1659 | 1282 | "rlim_max" : 0 | ||
1660 | 1283 | }, | ||
1661 | 1284 | { | ||
1662 | 1285 | "rlim_max" : 0, | ||
1663 | 1286 | "rlim_cur" : 0 | ||
1664 | 1287 | }, | ||
1665 | 1288 | { | ||
1666 | 1289 | "rlim_cur" : 0, | ||
1667 | 1290 | "rlim_max" : 0 | ||
1668 | 1291 | }, | ||
1669 | 1292 | { | ||
1670 | 1293 | "rlim_max" : 0, | ||
1671 | 1294 | "rlim_cur" : 0 | ||
1672 | 1295 | }, | ||
1673 | 1296 | { | ||
1674 | 1297 | "rlim_max" : 0, | ||
1675 | 1298 | "rlim_cur" : 0 | ||
1676 | 1299 | }, | ||
1677 | 1300 | { | ||
1678 | 1301 | "rlim_cur" : 0, | ||
1679 | 1302 | "rlim_max" : 0 | ||
1680 | 1303 | }, | ||
1681 | 1304 | { | ||
1682 | 1305 | "rlim_cur" : 0, | ||
1683 | 1306 | "rlim_max" : 0 | ||
1684 | 1307 | }, | ||
1685 | 1308 | { | ||
1686 | 1309 | "rlim_max" : 0, | ||
1687 | 1310 | "rlim_cur" : 0 | ||
1688 | 1311 | } | ||
1689 | 1312 | ], | ||
1690 | 1313 | "start_on" : [ | ||
1691 | 1314 | { | ||
1692 | 1315 | "name" : "filesystem", | ||
1693 | 1316 | "value" : 0, | ||
1694 | 1317 | "type" : "EVENT_MATCH" | ||
1695 | 1318 | } | ||
1696 | 1319 | ], | ||
1697 | 1320 | "path" : "/com/ubuntu/Upstart/jobs/rsyslog", | ||
1698 | 1321 | "console" : "CONSOLE_LOG", | ||
1699 | 1322 | "export" : [], | ||
1700 | 1323 | "version" : null, | ||
1701 | 1324 | "env" : [], | ||
1702 | 1325 | "umask" : 18, | ||
1703 | 1326 | "task" : 0, | ||
1704 | 1327 | "kill_signal" : 15, | ||
1705 | 1328 | "session" : 0, | ||
1706 | 1329 | "reload_signal" : 1, | ||
1707 | 1330 | "respawn_limit" : 10, | ||
1708 | 1331 | "jobs" : [ | ||
1709 | 1332 | { | ||
1710 | 1333 | "trace_forks" : 1, | ||
1711 | 1334 | "stop_on" : [ | ||
1712 | 1335 | { | ||
1713 | 1336 | "env" : [ | ||
1714 | 1337 | "[06]" | ||
1715 | 1338 | ], | ||
1716 | 1339 | "name" : "runlevel", | ||
1717 | 1340 | "value" : 0, | ||
1718 | 1341 | "type" : "EVENT_MATCH" | ||
1719 | 1342 | } | ||
1720 | 1343 | ], | ||
1721 | 1344 | "trace_state" : "TRACE_NONE", | ||
1722 | 1345 | "state" : "JOB_RUNNING", | ||
1723 | 1346 | "start_env" : [], | ||
1724 | 1347 | "kill_process" : "PROCESS_INVALID", | ||
1725 | 1348 | "pid" : [ | ||
1726 | 1349 | 747, | ||
1727 | 1350 | 0, | ||
1728 | 1351 | 0, | ||
1729 | 1352 | 0, | ||
1730 | 1353 | 0, | ||
1731 | 1354 | 0, | ||
1732 | 1355 | 0 | ||
1733 | 1356 | ], | ||
1734 | 1357 | "goal" : "JOB_START", | ||
1735 | 1358 | "stop_env" : [], | ||
1736 | 1359 | "failed_process" : "PROCESS_INVALID", | ||
1737 | 1360 | "log" : [ | ||
1738 | 1361 | { | ||
1739 | 1362 | "path" : null | ||
1740 | 1363 | }, | ||
1741 | 1364 | { | ||
1742 | 1365 | "path" : null | ||
1743 | 1366 | }, | ||
1744 | 1367 | { | ||
1745 | 1368 | "path" : null | ||
1746 | 1369 | }, | ||
1747 | 1370 | { | ||
1748 | 1371 | "path" : null | ||
1749 | 1372 | }, | ||
1750 | 1373 | { | ||
1751 | 1374 | "path" : null | ||
1752 | 1375 | }, | ||
1753 | 1376 | { | ||
1754 | 1377 | "path" : null | ||
1755 | 1378 | }, | ||
1756 | 1379 | { | ||
1757 | 1380 | "path" : null | ||
1758 | 1381 | } | ||
1759 | 1382 | ], | ||
1760 | 1383 | "name" : "", | ||
1761 | 1384 | "exit_status" : 0, | ||
1762 | 1385 | "respawn_count" : 0, | ||
1763 | 1386 | "respawn_time" : 0, | ||
1764 | 1387 | "path" : "/com/ubuntu/Upstart/jobs/rsyslog/_", | ||
1765 | 1388 | "failed" : 0, | ||
1766 | 1389 | "fds" : [], | ||
1767 | 1390 | "env" : [ | ||
1768 | 1391 | "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin", | ||
1769 | 1392 | "TERM=linux", | ||
1770 | 1393 | "UPSTART_EVENTS=filesystem" | ||
1771 | 1394 | ] | ||
1772 | 1395 | } | ||
1773 | 1396 | ], | ||
1774 | 1397 | "normalexit" : [], | ||
1775 | 1398 | "setuid" : null, | ||
1776 | 1399 | "oom_score_adj" : 0, | ||
1777 | 1400 | "nice" : -21, | ||
1778 | 1401 | "debug" : 0, | ||
1779 | 1402 | "name" : "rsyslog" | ||
1780 | 1403 | }, | ||
1781 | 1404 | { | ||
1782 | 1405 | "respawn" : 0, | ||
1783 | 1406 | "description" : "GNU Screen Cleanup", | ||
1784 | 1407 | "chdir" : null, | ||
1785 | 1408 | "process" : [ | ||
1786 | 1409 | { | ||
1787 | 1410 | "command" : "SCREENDIR=/var/run/screen\nif [ -L $SCREENDIR ] || [ ! -d $SCREENDIR ]; then\n\trm -f $SCREENDIR\n\tmkdir $SCREENDIR\n\tchown root:utmp $SCREENDIR\nfi\nfind $SCREENDIR -type p -delete\n# If the local admin has used dpkg-statoverride to install the screen\n# binary with different set[ug]id bits, change the permissions of\n# $SCREENDIR accordingly\nBINARYPERM=`stat -c%a /usr/bin/screen`\nif [ \"$BINARYPERM\" -ge 4000 ]; then\n\tchmod 0755 $SCREENDIR\nelif [ \"$BINARYPERM\" -ge 2000 ]; then\n\tchmod 0775 $SCREENDIR\nelse\n\tchmod 0777 $SCREENDIR\nfi\n", | ||
1788 | 1411 | "script" : 1 | ||
1789 | 1412 | }, | ||
1790 | 1413 | { | ||
1791 | 1414 | "script" : 0, | ||
1792 | 1415 | "command" : null | ||
1793 | 1416 | }, | ||
1794 | 1417 | { | ||
1795 | 1418 | "script" : 0, | ||
1796 | 1419 | "command" : null | ||
1797 | 1420 | }, | ||
1798 | 1421 | { | ||
1799 | 1422 | "script" : 0, | ||
1800 | 1423 | "command" : null | ||
1801 | 1424 | }, | ||
1802 | 1425 | { | ||
1803 | 1426 | "script" : 0, | ||
1804 | 1427 | "command" : null | ||
1805 | 1428 | }, | ||
1806 | 1429 | { | ||
1807 | 1430 | "script" : 0, | ||
1808 | 1431 | "command" : null | ||
1809 | 1432 | }, | ||
1810 | 1433 | { | ||
1811 | 1434 | "script" : 0, | ||
1812 | 1435 | "command" : null | ||
1813 | 1436 | } | ||
1814 | 1437 | ], | ||
1815 | 1438 | "expect" : "EXPECT_NONE", | ||
1816 | 1439 | "kill_timeout" : 5, | ||
1817 | 1440 | "apparmor_switch" : null, | ||
1818 | 1441 | "deleted" : 0, | ||
1819 | 1442 | "setgid" : null, | ||
1820 | 1443 | "author" : "Dustin Kirkland <kirkland@canonical.com>", | ||
1821 | 1444 | "usage" : null, | ||
1822 | 1445 | "chroot" : null, | ||
1823 | 1446 | "emits" : [], | ||
1824 | 1447 | "version" : null, | ||
1825 | 1448 | "umask" : 18, | ||
1826 | 1449 | "env" : [], | ||
1827 | 1450 | "export" : [], | ||
1828 | 1451 | "console" : "CONSOLE_LOG", | ||
1829 | 1452 | "start_on" : [ | ||
1830 | 1453 | { | ||
1831 | 1454 | "value" : 0, | ||
1832 | 1455 | "name" : "filesystem", | ||
1833 | 1456 | "type" : "EVENT_MATCH" | ||
1834 | 1457 | } | ||
1835 | 1458 | ], | ||
1836 | 1459 | "limits" : [ | ||
1837 | 1460 | { | ||
1838 | 1461 | "rlim_cur" : 0, | ||
1839 | 1462 | "rlim_max" : 0 | ||
1840 | 1463 | }, | ||
1841 | 1464 | { | ||
1842 | 1465 | "rlim_max" : 0, | ||
1843 | 1466 | "rlim_cur" : 0 | ||
1844 | 1467 | }, | ||
1845 | 1468 | { | ||
1846 | 1469 | "rlim_cur" : 0, | ||
1847 | 1470 | "rlim_max" : 0 | ||
1848 | 1471 | }, | ||
1849 | 1472 | { | ||
1850 | 1473 | "rlim_max" : 0, | ||
1851 | 1474 | "rlim_cur" : 0 | ||
1852 | 1475 | }, | ||
1853 | 1476 | { | ||
1854 | 1477 | "rlim_cur" : 0, | ||
1855 | 1478 | "rlim_max" : 0 | ||
1856 | 1479 | }, | ||
1857 | 1480 | { | ||
1858 | 1481 | "rlim_max" : 0, | ||
1859 | 1482 | "rlim_cur" : 0 | ||
1860 | 1483 | }, | ||
1861 | 1484 | { | ||
1862 | 1485 | "rlim_cur" : 0, | ||
1863 | 1486 | "rlim_max" : 0 | ||
1864 | 1487 | }, | ||
1865 | 1488 | { | ||
1866 | 1489 | "rlim_cur" : 0, | ||
1867 | 1490 | "rlim_max" : 0 | ||
1868 | 1491 | }, | ||
1869 | 1492 | { | ||
1870 | 1493 | "rlim_max" : 0, | ||
1871 | 1494 | "rlim_cur" : 0 | ||
1872 | 1495 | }, | ||
1873 | 1496 | { | ||
1874 | 1497 | "rlim_max" : 0, | ||
1875 | 1498 | "rlim_cur" : 0 | ||
1876 | 1499 | }, | ||
1877 | 1500 | { | ||
1878 | 1501 | "rlim_max" : 0, | ||
1879 | 1502 | "rlim_cur" : 0 | ||
1880 | 1503 | }, | ||
1881 | 1504 | { | ||
1882 | 1505 | "rlim_max" : 0, | ||
1883 | 1506 | "rlim_cur" : 0 | ||
1884 | 1507 | }, | ||
1885 | 1508 | { | ||
1886 | 1509 | "rlim_cur" : 0, | ||
1887 | 1510 | "rlim_max" : 0 | ||
1888 | 1511 | }, | ||
1889 | 1512 | { | ||
1890 | 1513 | "rlim_cur" : 0, | ||
1891 | 1514 | "rlim_max" : 0 | ||
1892 | 1515 | }, | ||
1893 | 1516 | { | ||
1894 | 1517 | "rlim_cur" : 0, | ||
1895 | 1518 | "rlim_max" : 0 | ||
1896 | 1519 | }, | ||
1897 | 1520 | { | ||
1898 | 1521 | "rlim_cur" : 0, | ||
1899 | 1522 | "rlim_max" : 0 | ||
1900 | 1523 | } | ||
1901 | 1524 | ], | ||
1902 | 1525 | "instance" : "", | ||
1903 | 1526 | "path" : "/com/ubuntu/Upstart/jobs/screen_2dcleanup", | ||
1904 | 1527 | "respawn_interval" : 5, | ||
1905 | 1528 | "debug" : 0, | ||
1906 | 1529 | "name" : "screen-cleanup", | ||
1907 | 1530 | "oom_score_adj" : 0, | ||
1908 | 1531 | "nice" : -21, | ||
1909 | 1532 | "normalexit" : [], | ||
1910 | 1533 | "setuid" : null, | ||
1911 | 1534 | "respawn_limit" : 10, | ||
1912 | 1535 | "jobs" : [], | ||
1913 | 1536 | "session" : 0, | ||
1914 | 1537 | "reload_signal" : 1, | ||
1915 | 1538 | "kill_signal" : 15, | ||
1916 | 1539 | "task" : 1 | ||
1917 | 1540 | }, | ||
1918 | 1541 | { | ||
1919 | 1542 | "emits" : [], | ||
1920 | 1543 | "setgid" : null, | ||
1921 | 1544 | "deleted" : 0, | ||
1922 | 1545 | "author" : "Steve Langasek <steve.langasek@ubuntu.com>", | ||
1923 | 1546 | "usage" : null, | ||
1924 | 1547 | "chroot" : null, | ||
1925 | 1548 | "apparmor_switch" : null, | ||
1926 | 1549 | "chdir" : null, | ||
1927 | 1550 | "respawn" : 0, | ||
1928 | 1551 | "description" : "startpar bridge for notification of upstart job start/stop", | ||
1929 | 1552 | "process" : [ | ||
1930 | 1553 | { | ||
1931 | 1554 | "command" : "startpar-upstart-inject \"$JOB\" \"$INSTANCE\" \"$UPSTART_EVENTS\"", | ||
1932 | 1555 | "script" : 0 | ||
1933 | 1556 | }, | ||
1934 | 1557 | { | ||
1935 | 1558 | "command" : null, | ||
1936 | 1559 | "script" : 0 | ||
1937 | 1560 | }, | ||
1938 | 1561 | { | ||
1939 | 1562 | "command" : null, | ||
1940 | 1563 | "script" : 0 | ||
1941 | 1564 | }, | ||
1942 | 1565 | { | ||
1943 | 1566 | "command" : null, | ||
1944 | 1567 | "script" : 0 | ||
1945 | 1568 | }, | ||
1946 | 1569 | { | ||
1947 | 1570 | "command" : null, | ||
1948 | 1571 | "script" : 0 | ||
1949 | 1572 | }, | ||
1950 | 1573 | { | ||
1951 | 1574 | "command" : null, | ||
1952 | 1575 | "script" : 0 | ||
1953 | 1576 | }, | ||
1954 | 1577 | { | ||
1955 | 1578 | "command" : null, | ||
1956 | 1579 | "script" : 0 | ||
1957 | 1580 | } | ||
1958 | 1581 | ], | ||
1959 | 1582 | "expect" : "EXPECT_NONE", | ||
1960 | 1583 | "kill_timeout" : 5, | ||
1961 | 1584 | "jobs" : [], | ||
1962 | 1585 | "respawn_limit" : 10, | ||
1963 | 1586 | "session" : 0, | ||
1964 | 1587 | "reload_signal" : 1, | ||
1965 | 1588 | "kill_signal" : 15, | ||
1966 | 1589 | "task" : 1, | ||
1967 | 1590 | "name" : "startpar-bridge", | ||
1968 | 1591 | "debug" : 0, | ||
1969 | 1592 | "nice" : -21, | ||
1970 | 1593 | "oom_score_adj" : 0, | ||
1971 | 1594 | "normalexit" : [], | ||
1972 | 1595 | "setuid" : null, | ||
1973 | 1596 | "export" : [], | ||
1974 | 1597 | "console" : "CONSOLE_LOG", | ||
1975 | 1598 | "path" : "/com/ubuntu/Upstart/jobs/startpar_2dbridge", | ||
1976 | 1599 | "instance" : "$JOB-$INSTANCE-$UPSTART_EVENTS", | ||
1977 | 1600 | "limits" : [ | ||
1978 | 1601 | { | ||
1979 | 1602 | "rlim_cur" : 0, | ||
1980 | 1603 | "rlim_max" : 0 | ||
1981 | 1604 | }, | ||
1982 | 1605 | { | ||
1983 | 1606 | "rlim_cur" : 0, | ||
1984 | 1607 | "rlim_max" : 0 | ||
1985 | 1608 | }, | ||
1986 | 1609 | { | ||
1987 | 1610 | "rlim_max" : 0, | ||
1988 | 1611 | "rlim_cur" : 0 | ||
1989 | 1612 | }, | ||
1990 | 1613 | { | ||
1991 | 1614 | "rlim_max" : 0, | ||
1992 | 1615 | "rlim_cur" : 0 | ||
1993 | 1616 | }, | ||
1994 | 1617 | { | ||
1995 | 1618 | "rlim_cur" : 0, | ||
1996 | 1619 | "rlim_max" : 0 | ||
1997 | 1620 | }, | ||
1998 | 1621 | { | ||
1999 | 1622 | "rlim_cur" : 0, | ||
2000 | 1623 | "rlim_max" : 0 | ||
2001 | 1624 | }, | ||
2002 | 1625 | { | ||
2003 | 1626 | "rlim_cur" : 0, | ||
2004 | 1627 | "rlim_max" : 0 | ||
2005 | 1628 | }, | ||
2006 | 1629 | { | ||
2007 | 1630 | "rlim_cur" : 0, | ||
2008 | 1631 | "rlim_max" : 0 | ||
2009 | 1632 | }, | ||
2010 | 1633 | { | ||
2011 | 1634 | "rlim_cur" : 0, | ||
2012 | 1635 | "rlim_max" : 0 | ||
2013 | 1636 | }, | ||
2014 | 1637 | { | ||
2015 | 1638 | "rlim_cur" : 0, | ||
2016 | 1639 | "rlim_max" : 0 | ||
2017 | 1640 | }, | ||
2018 | 1641 | { | ||
2019 | 1642 | "rlim_cur" : 0, | ||
2020 | 1643 | "rlim_max" : 0 | ||
2021 | 1644 | }, | ||
2022 | 1645 | { | ||
2023 | 1646 | "rlim_cur" : 0, | ||
2024 | 1647 | "rlim_max" : 0 | ||
2025 | 1648 | }, | ||
2026 | 1649 | { | ||
2027 | 1650 | "rlim_max" : 0, | ||
2028 | 1651 | "rlim_cur" : 0 | ||
2029 | 1652 | }, | ||
2030 | 1653 | { | ||
2031 | 1654 | "rlim_cur" : 0, | ||
2032 | 1655 | "rlim_max" : 0 | ||
2033 | 1656 | }, | ||
2034 | 1657 | { | ||
2035 | 1658 | "rlim_cur" : 0, | ||
2036 | 1659 | "rlim_max" : 0 | ||
2037 | 1660 | }, | ||
2038 | 1661 | { | ||
2039 | 1662 | "rlim_cur" : 0, | ||
2040 | 1663 | "rlim_max" : 0 | ||
2041 | 1664 | } | ||
2042 | 1665 | ], | ||
2043 | 1666 | "start_on" : [ | ||
2044 | 1667 | { | ||
2045 | 1668 | "env" : [ | ||
2046 | 1669 | "JOB!=startpar-bridge" | ||
2047 | 1670 | ], | ||
2048 | 1671 | "name" : "started", | ||
2049 | 1672 | "value" : 0, | ||
2050 | 1673 | "type" : "EVENT_MATCH" | ||
2051 | 1674 | }, | ||
2052 | 1675 | { | ||
2053 | 1676 | "env" : [ | ||
2054 | 1677 | "JOB!=startpar-bridge" | ||
2055 | 1678 | ], | ||
2056 | 1679 | "name" : "stopped", | ||
2057 | 1680 | "value" : 0, | ||
2058 | 1681 | "type" : "EVENT_MATCH" | ||
2059 | 1682 | }, | ||
2060 | 1683 | { | ||
2061 | 1684 | "value" : 0, | ||
2062 | 1685 | "type" : "EVENT_OR" | ||
2063 | 1686 | } | ||
2064 | 1687 | ], | ||
2065 | 1688 | "respawn_interval" : 5, | ||
2066 | 1689 | "env" : [], | ||
2067 | 1690 | "umask" : 18, | ||
2068 | 1691 | "version" : null | ||
2069 | 1692 | }, | ||
2070 | 1693 | { | ||
2071 | 1694 | "apparmor_switch" : null, | ||
2072 | 1695 | "process" : [ | ||
2073 | 1696 | { | ||
2074 | 1697 | "script" : 0, | ||
2075 | 1698 | "command" : "/home/james/src/c/bin/test_daemon --daemon --debug --post-fork-child-wait-file /tmp/wait" | ||
2076 | 1699 | }, | ||
2077 | 1700 | { | ||
2078 | 1701 | "script" : 0, | ||
2079 | 1702 | "command" : null | ||
2080 | 1703 | }, | ||
2081 | 1704 | { | ||
2082 | 1705 | "command" : null, | ||
2083 | 1706 | "script" : 0 | ||
2084 | 1707 | }, | ||
2085 | 1708 | { | ||
2086 | 1709 | "command" : null, | ||
2087 | 1710 | "script" : 0 | ||
2088 | 1711 | }, | ||
2089 | 1712 | { | ||
2090 | 1713 | "script" : 0, | ||
2091 | 1714 | "command" : null | ||
2092 | 1715 | }, | ||
2093 | 1716 | { | ||
2094 | 1717 | "script" : 0, | ||
2095 | 1718 | "command" : null | ||
2096 | 1719 | }, | ||
2097 | 1720 | { | ||
2098 | 1721 | "command" : null, | ||
2099 | 1722 | "script" : 0 | ||
2100 | 1723 | } | ||
2101 | 1724 | ], | ||
2102 | 1725 | "description" : null, | ||
2103 | 1726 | "chdir" : null, | ||
2104 | 1727 | "respawn" : 0, | ||
2105 | 1728 | "kill_timeout" : 5, | ||
2106 | 1729 | "expect" : "EXPECT_DAEMON", | ||
2107 | 1730 | "emits" : [], | ||
2108 | 1731 | "setgid" : null, | ||
2109 | 1732 | "deleted" : 0, | ||
2110 | 1733 | "usage" : null, | ||
2111 | 1734 | "author" : null, | ||
2112 | 1735 | "chroot" : null, | ||
2113 | 1736 | "console" : "CONSOLE_LOG", | ||
2114 | 1737 | "export" : [], | ||
2115 | 1738 | "respawn_interval" : 5, | ||
2116 | 1739 | "limits" : [ | ||
2117 | 1740 | { | ||
2118 | 1741 | "rlim_max" : 0, | ||
2119 | 1742 | "rlim_cur" : 0 | ||
2120 | 1743 | }, | ||
2121 | 1744 | { | ||
2122 | 1745 | "rlim_max" : 0, | ||
2123 | 1746 | "rlim_cur" : 0 | ||
2124 | 1747 | }, | ||
2125 | 1748 | { | ||
2126 | 1749 | "rlim_cur" : 0, | ||
2127 | 1750 | "rlim_max" : 0 | ||
2128 | 1751 | }, | ||
2129 | 1752 | { | ||
2130 | 1753 | "rlim_cur" : 0, | ||
2131 | 1754 | "rlim_max" : 0 | ||
2132 | 1755 | }, | ||
2133 | 1756 | { | ||
2134 | 1757 | "rlim_cur" : 0, | ||
2135 | 1758 | "rlim_max" : 0 | ||
2136 | 1759 | }, | ||
2137 | 1760 | { | ||
2138 | 1761 | "rlim_cur" : 0, | ||
2139 | 1762 | "rlim_max" : 0 | ||
2140 | 1763 | }, | ||
2141 | 1764 | { | ||
2142 | 1765 | "rlim_max" : 0, | ||
2143 | 1766 | "rlim_cur" : 0 | ||
2144 | 1767 | }, | ||
2145 | 1768 | { | ||
2146 | 1769 | "rlim_cur" : 0, | ||
2147 | 1770 | "rlim_max" : 0 | ||
2148 | 1771 | }, | ||
2149 | 1772 | { | ||
2150 | 1773 | "rlim_cur" : 0, | ||
2151 | 1774 | "rlim_max" : 0 | ||
2152 | 1775 | }, | ||
2153 | 1776 | { | ||
2154 | 1777 | "rlim_max" : 0, | ||
2155 | 1778 | "rlim_cur" : 0 | ||
2156 | 1779 | }, | ||
2157 | 1780 | { | ||
2158 | 1781 | "rlim_max" : 0, | ||
2159 | 1782 | "rlim_cur" : 0 | ||
2160 | 1783 | }, | ||
2161 | 1784 | { | ||
2162 | 1785 | "rlim_max" : 0, | ||
2163 | 1786 | "rlim_cur" : 0 | ||
2164 | 1787 | }, | ||
2165 | 1788 | { | ||
2166 | 1789 | "rlim_max" : 0, | ||
2167 | 1790 | "rlim_cur" : 0 | ||
2168 | 1791 | }, | ||
2169 | 1792 | { | ||
2170 | 1793 | "rlim_max" : 0, | ||
2171 | 1794 | "rlim_cur" : 0 | ||
2172 | 1795 | }, | ||
2173 | 1796 | { | ||
2174 | 1797 | "rlim_cur" : 0, | ||
2175 | 1798 | "rlim_max" : 0 | ||
2176 | 1799 | }, | ||
2177 | 1800 | { | ||
2178 | 1801 | "rlim_max" : 0, | ||
2179 | 1802 | "rlim_cur" : 0 | ||
2180 | 1803 | } | ||
2181 | 1804 | ], | ||
2182 | 1805 | "start_on" : [ | ||
2183 | 1806 | { | ||
2184 | 1807 | "name" : "foo", | ||
2185 | 1808 | "value" : 0, | ||
2186 | 1809 | "type" : "EVENT_MATCH" | ||
2187 | 1810 | } | ||
2188 | 1811 | ], | ||
2189 | 1812 | "instance" : "", | ||
2190 | 1813 | "path" : "/com/ubuntu/Upstart/jobs/test_2ddaemon_2d2", | ||
2191 | 1814 | "version" : null, | ||
2192 | 1815 | "env" : [], | ||
2193 | 1816 | "umask" : 18, | ||
2194 | 1817 | "respawn_limit" : 10, | ||
2195 | 1818 | "jobs" : [ | ||
2196 | 1819 | { | ||
2197 | 1820 | "fds" : [], | ||
2198 | 1821 | "env" : [ | ||
2199 | 1822 | "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin", | ||
2200 | 1823 | "TERM=linux", | ||
2201 | 1824 | "UPSTART_EVENTS=foo" | ||
2202 | 1825 | ], | ||
2203 | 1826 | "blocking" : [ | ||
2204 | 1827 | { | ||
2205 | 1828 | "data" : { | ||
2206 | 1829 | "index" : 3 | ||
2207 | 1830 | }, | ||
2208 | 1831 | "type" : "BLOCKED_EVENT" | ||
2209 | 1832 | } | ||
2210 | 1833 | ], | ||
2211 | 1834 | "respawn_count" : 0, | ||
2212 | 1835 | "respawn_time" : 0, | ||
2213 | 1836 | "path" : "/com/ubuntu/Upstart/jobs/test_2ddaemon_2d2/_", | ||
2214 | 1837 | "failed" : 0, | ||
2215 | 1838 | "stop_env" : [], | ||
2216 | 1839 | "failed_process" : "PROCESS_INVALID", | ||
2217 | 1840 | "log" : [ | ||
2218 | 1841 | { | ||
2219 | 1842 | "uid" : 0, | ||
2220 | 1843 | "remote_closed" : 0, | ||
2221 | 1844 | "detached" : 0, | ||
2222 | 1845 | "path" : "/var/log/upstart/test-daemon-2.log", | ||
2223 | 1846 | "fd" : 9, | ||
2224 | 1847 | "open_errno" : 9, | ||
2225 | 1848 | "io_watch_fd" : 15 | ||
2226 | 1849 | }, | ||
2227 | 1850 | { | ||
2228 | 1851 | "path" : null | ||
2229 | 1852 | }, | ||
2230 | 1853 | { | ||
2231 | 1854 | "path" : null | ||
2232 | 1855 | }, | ||
2233 | 1856 | { | ||
2234 | 1857 | "path" : null | ||
2235 | 1858 | }, | ||
2236 | 1859 | { | ||
2237 | 1860 | "path" : null | ||
2238 | 1861 | }, | ||
2239 | 1862 | { | ||
2240 | 1863 | "path" : null | ||
2241 | 1864 | }, | ||
2242 | 1865 | { | ||
2243 | 1866 | "path" : null | ||
2244 | 1867 | } | ||
2245 | 1868 | ], | ||
2246 | 1869 | "name" : "", | ||
2247 | 1870 | "exit_status" : 0, | ||
2248 | 1871 | "trace_forks" : 1, | ||
2249 | 1872 | "trace_state" : "TRACE_NORMAL", | ||
2250 | 1873 | "state" : "JOB_SPAWNED", | ||
2251 | 1874 | "pid" : [ | ||
2252 | 1875 | 1910, | ||
2253 | 1876 | 0, | ||
2254 | 1877 | 0, | ||
2255 | 1878 | 0, | ||
2256 | 1879 | 0, | ||
2257 | 1880 | 0, | ||
2258 | 1881 | 0 | ||
2259 | 1882 | ], | ||
2260 | 1883 | "kill_process" : "PROCESS_INVALID", | ||
2261 | 1884 | "start_env" : [], | ||
2262 | 1885 | "goal" : "JOB_START" | ||
2263 | 1886 | } | ||
2264 | 1887 | ], | ||
2265 | 1888 | "kill_signal" : 15, | ||
2266 | 1889 | "task" : 0, | ||
2267 | 1890 | "session" : 0, | ||
2268 | 1891 | "reload_signal" : 1, | ||
2269 | 1892 | "oom_score_adj" : 0, | ||
2270 | 1893 | "nice" : -21, | ||
2271 | 1894 | "debug" : 0, | ||
2272 | 1895 | "name" : "test-daemon-2", | ||
2273 | 1896 | "setuid" : null, | ||
2274 | 1897 | "normalexit" : [] | ||
2275 | 1898 | }, | ||
2276 | 1899 | { | ||
2277 | 1900 | "version" : null, | ||
2278 | 1901 | "umask" : 18, | ||
2279 | 1902 | "env" : [], | ||
2280 | 1903 | "respawn_interval" : 5, | ||
2281 | 1904 | "limits" : [ | ||
2282 | 1905 | { | ||
2283 | 1906 | "rlim_cur" : 0, | ||
2284 | 1907 | "rlim_max" : 0 | ||
2285 | 1908 | }, | ||
2286 | 1909 | { | ||
2287 | 1910 | "rlim_cur" : 0, | ||
2288 | 1911 | "rlim_max" : 0 | ||
2289 | 1912 | }, | ||
2290 | 1913 | { | ||
2291 | 1914 | "rlim_cur" : 0, | ||
2292 | 1915 | "rlim_max" : 0 | ||
2293 | 1916 | }, | ||
2294 | 1917 | { | ||
2295 | 1918 | "rlim_cur" : 0, | ||
2296 | 1919 | "rlim_max" : 0 | ||
2297 | 1920 | }, | ||
2298 | 1921 | { | ||
2299 | 1922 | "rlim_max" : 0, | ||
2300 | 1923 | "rlim_cur" : 0 | ||
2301 | 1924 | }, | ||
2302 | 1925 | { | ||
2303 | 1926 | "rlim_max" : 0, | ||
2304 | 1927 | "rlim_cur" : 0 | ||
2305 | 1928 | }, | ||
2306 | 1929 | { | ||
2307 | 1930 | "rlim_cur" : 0, | ||
2308 | 1931 | "rlim_max" : 0 | ||
2309 | 1932 | }, | ||
2310 | 1933 | { | ||
2311 | 1934 | "rlim_max" : 0, | ||
2312 | 1935 | "rlim_cur" : 0 | ||
2313 | 1936 | }, | ||
2314 | 1937 | { | ||
2315 | 1938 | "rlim_max" : 0, | ||
2316 | 1939 | "rlim_cur" : 0 | ||
2317 | 1940 | }, | ||
2318 | 1941 | { | ||
2319 | 1942 | "rlim_cur" : 0, | ||
2320 | 1943 | "rlim_max" : 0 | ||
2321 | 1944 | }, | ||
2322 | 1945 | { | ||
2323 | 1946 | "rlim_max" : 0, | ||
2324 | 1947 | "rlim_cur" : 0 | ||
2325 | 1948 | }, | ||
2326 | 1949 | { | ||
2327 | 1950 | "rlim_cur" : 0, | ||
2328 | 1951 | "rlim_max" : 0 | ||
2329 | 1952 | }, | ||
2330 | 1953 | { | ||
2331 | 1954 | "rlim_max" : 0, | ||
2332 | 1955 | "rlim_cur" : 0 | ||
2333 | 1956 | }, | ||
2334 | 1957 | { | ||
2335 | 1958 | "rlim_max" : 0, | ||
2336 | 1959 | "rlim_cur" : 0 | ||
2337 | 1960 | }, | ||
2338 | 1961 | { | ||
2339 | 1962 | "rlim_cur" : 0, | ||
2340 | 1963 | "rlim_max" : 0 | ||
2341 | 1964 | }, | ||
2342 | 1965 | { | ||
2343 | 1966 | "rlim_cur" : 0, | ||
2344 | 1967 | "rlim_max" : 0 | ||
2345 | 1968 | } | ||
2346 | 1969 | ], | ||
2347 | 1970 | "start_on" : [ | ||
2348 | 1971 | { | ||
2349 | 1972 | "name" : "runlevel", | ||
2350 | 1973 | "value" : 0, | ||
2351 | 1974 | "type" : "EVENT_MATCH", | ||
2352 | 1975 | "env" : [ | ||
2353 | 1976 | "[23]" | ||
2354 | 1977 | ] | ||
2355 | 1978 | }, | ||
2356 | 1979 | { | ||
2357 | 1980 | "value" : 0, | ||
2358 | 1981 | "name" : "not-container", | ||
2359 | 1982 | "type" : "EVENT_MATCH" | ||
2360 | 1983 | }, | ||
2361 | 1984 | { | ||
2362 | 1985 | "type" : "EVENT_MATCH", | ||
2363 | 1986 | "name" : "container", | ||
2364 | 1987 | "value" : 0, | ||
2365 | 1988 | "env" : [ | ||
2366 | 1989 | "CONTAINER=lxc" | ||
2367 | 1990 | ] | ||
2368 | 1991 | }, | ||
2369 | 1992 | { | ||
2370 | 1993 | "value" : 0, | ||
2371 | 1994 | "type" : "EVENT_OR" | ||
2372 | 1995 | }, | ||
2373 | 1996 | { | ||
2374 | 1997 | "env" : [ | ||
2375 | 1998 | "CONTAINER=lxc-libvirt" | ||
2376 | 1999 | ], | ||
2377 | 2000 | "type" : "EVENT_MATCH", | ||
2378 | 2001 | "value" : 0, | ||
2379 | 2002 | "name" : "container" | ||
2380 | 2003 | }, | ||
2381 | 2004 | { | ||
2382 | 2005 | "type" : "EVENT_OR", | ||
2383 | 2006 | "value" : 0 | ||
2384 | 2007 | }, | ||
2385 | 2008 | { | ||
2386 | 2009 | "value" : 0, | ||
2387 | 2010 | "type" : "EVENT_AND" | ||
2388 | 2011 | } | ||
2389 | 2012 | ], | ||
2390 | 2013 | "instance" : "", | ||
2391 | 2014 | "path" : "/com/ubuntu/Upstart/jobs/tty4", | ||
2392 | 2015 | "console" : "CONSOLE_LOG", | ||
2393 | 2016 | "export" : [], | ||
2394 | 2017 | "setuid" : null, | ||
2395 | 2018 | "normalexit" : [], | ||
2396 | 2019 | "oom_score_adj" : 0, | ||
2397 | 2020 | "nice" : -21, | ||
2398 | 2021 | "debug" : 0, | ||
2399 | 2022 | "name" : "tty4", | ||
2400 | 2023 | "task" : 0, | ||
2401 | 2024 | "kill_signal" : 15, | ||
2402 | 2025 | "reload_signal" : 1, | ||
2403 | 2026 | "session" : 0, | ||
2404 | 2027 | "respawn_limit" : 10, | ||
2405 | 2028 | "jobs" : [ | ||
2406 | 2029 | { | ||
2407 | 2030 | "respawn_count" : 0, | ||
2408 | 2031 | "respawn_time" : 0, | ||
2409 | 2032 | "failed" : 0, | ||
2410 | 2033 | "path" : "/com/ubuntu/Upstart/jobs/tty4/_", | ||
2411 | 2034 | "fds" : [], | ||
2412 | 2035 | "env" : [ | ||
2413 | 2036 | "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin", | ||
2414 | 2037 | "TERM=linux", | ||
2415 | 2038 | "RUNLEVEL=2", | ||
2416 | 2039 | "PREVLEVEL=N", | ||
2417 | 2040 | "UPSTART_EVENTS=runlevel not-container" | ||
2418 | 2041 | ], | ||
2419 | 2042 | "stop_on" : [ | ||
2420 | 2043 | { | ||
2421 | 2044 | "env" : [ | ||
2422 | 2045 | "[!23]" | ||
2423 | 2046 | ], | ||
2424 | 2047 | "type" : "EVENT_MATCH", | ||
2425 | 2048 | "value" : 0, | ||
2426 | 2049 | "name" : "runlevel" | ||
2427 | 2050 | } | ||
2428 | 2051 | ], | ||
2429 | 2052 | "trace_forks" : 0, | ||
2430 | 2053 | "state" : "JOB_RUNNING", | ||
2431 | 2054 | "trace_state" : "TRACE_NONE", | ||
2432 | 2055 | "pid" : [ | ||
2433 | 2056 | 984, | ||
2434 | 2057 | 0, | ||
2435 | 2058 | 0, | ||
2436 | 2059 | 0, | ||
2437 | 2060 | 0, | ||
2438 | 2061 | 0, | ||
2439 | 2062 | 0 | ||
2440 | 2063 | ], | ||
2441 | 2064 | "kill_process" : "PROCESS_INVALID", | ||
2442 | 2065 | "start_env" : [], | ||
2443 | 2066 | "goal" : "JOB_START", | ||
2444 | 2067 | "log" : [ | ||
2445 | 2068 | { | ||
2446 | 2069 | "path" : null | ||
2447 | 2070 | }, | ||
2448 | 2071 | { | ||
2449 | 2072 | "path" : null | ||
2450 | 2073 | }, | ||
2451 | 2074 | { | ||
2452 | 2075 | "path" : null | ||
2453 | 2076 | }, | ||
2454 | 2077 | { | ||
2455 | 2078 | "path" : null | ||
2456 | 2079 | }, | ||
2457 | 2080 | { | ||
2458 | 2081 | "path" : null | ||
2459 | 2082 | }, | ||
2460 | 2083 | { | ||
2461 | 2084 | "path" : null | ||
2462 | 2085 | }, | ||
2463 | 2086 | { | ||
2464 | 2087 | "path" : null | ||
2465 | 2088 | } | ||
2466 | 2089 | ], | ||
2467 | 2090 | "failed_process" : "PROCESS_INVALID", | ||
2468 | 2091 | "stop_env" : [], | ||
2469 | 2092 | "name" : "", | ||
2470 | 2093 | "exit_status" : 0 | ||
2471 | 2094 | } | ||
2472 | 2095 | ], | ||
2473 | 2096 | "kill_timeout" : 5, | ||
2474 | 2097 | "expect" : "EXPECT_NONE", | ||
2475 | 2098 | "process" : [ | ||
2476 | 2099 | { | ||
2477 | 2100 | "script" : 0, | ||
2478 | 2101 | "command" : "/sbin/getty -8 38400 tty4" | ||
2479 | 2102 | }, | ||
2480 | 2103 | { | ||
2481 | 2104 | "script" : 0, | ||
2482 | 2105 | "command" : null | ||
2483 | 2106 | }, | ||
2484 | 2107 | { | ||
2485 | 2108 | "command" : null, | ||
2486 | 2109 | "script" : 0 | ||
2487 | 2110 | }, | ||
2488 | 2111 | { | ||
2489 | 2112 | "command" : null, | ||
2490 | 2113 | "script" : 0 | ||
2491 | 2114 | }, | ||
2492 | 2115 | { | ||
2493 | 2116 | "command" : null, | ||
2494 | 2117 | "script" : 0 | ||
2495 | 2118 | }, | ||
2496 | 2119 | { | ||
2497 | 2120 | "command" : null, | ||
2498 | 2121 | "script" : 0 | ||
2499 | 2122 | }, | ||
2500 | 2123 | { | ||
2501 | 2124 | "script" : 0, | ||
2502 | 2125 | "command" : null | ||
2503 | 2126 | } | ||
2504 | 2127 | ], | ||
2505 | 2128 | "chdir" : null, | ||
2506 | 2129 | "description" : null, | ||
2507 | 2130 | "respawn" : 1, | ||
2508 | 2131 | "apparmor_switch" : null, | ||
2509 | 2132 | "author" : null, | ||
2510 | 2133 | "usage" : null, | ||
2511 | 2134 | "chroot" : null, | ||
2512 | 2135 | "deleted" : 0, | ||
2513 | 2136 | "setgid" : null, | ||
2514 | 2137 | "emits" : [], | ||
2515 | 2138 | "stop_on" : [ | ||
2516 | 2139 | { | ||
2517 | 2140 | "value" : 0, | ||
2518 | 2141 | "name" : "runlevel", | ||
2519 | 2142 | "type" : "EVENT_MATCH", | ||
2520 | 2143 | "env" : [ | ||
2521 | 2144 | "[!23]" | ||
2522 | 2145 | ] | ||
2523 | 2146 | } | ||
2524 | 2147 | ] | ||
2525 | 2148 | }, | ||
2526 | 2149 | { | ||
2527 | 2150 | "apparmor_switch" : null, | ||
2528 | 2151 | "process" : [ | ||
2529 | 2152 | { | ||
2530 | 2153 | "command" : "/lib/systemd/systemd-udevd --daemon", | ||
2531 | 2154 | "script" : 0 | ||
2532 | 2155 | }, | ||
2533 | 2156 | { | ||
2534 | 2157 | "command" : null, | ||
2535 | 2158 | "script" : 0 | ||
2536 | 2159 | }, | ||
2537 | 2160 | { | ||
2538 | 2161 | "script" : 0, | ||
2539 | 2162 | "command" : null | ||
2540 | 2163 | }, | ||
2541 | 2164 | { | ||
2542 | 2165 | "script" : 0, | ||
2543 | 2166 | "command" : null | ||
2544 | 2167 | }, | ||
2545 | 2168 | { | ||
2546 | 2169 | "command" : null, | ||
2547 | 2170 | "script" : 0 | ||
2548 | 2171 | }, | ||
2549 | 2172 | { | ||
2550 | 2173 | "script" : 0, | ||
2551 | 2174 | "command" : null | ||
2552 | 2175 | }, | ||
2553 | 2176 | { | ||
2554 | 2177 | "command" : null, | ||
2555 | 2178 | "script" : 0 | ||
2556 | 2179 | } | ||
2557 | 2180 | ], | ||
2558 | 2181 | "chdir" : null, | ||
2559 | 2182 | "description" : "device node and kernel event manager", | ||
2560 | 2183 | "respawn" : 1, | ||
2561 | 2184 | "kill_timeout" : 5, | ||
2562 | 2185 | "expect" : "EXPECT_FORK", | ||
2563 | 2186 | "stop_on" : [ | ||
2564 | 2187 | { | ||
2565 | 2188 | "value" : 0, | ||
2566 | 2189 | "name" : "runlevel", | ||
2567 | 2190 | "type" : "EVENT_MATCH", | ||
2568 | 2191 | "env" : [ | ||
2569 | 2192 | "[06]" | ||
2570 | 2193 | ] | ||
2571 | 2194 | } | ||
2572 | 2195 | ], | ||
2573 | 2196 | "emits" : [], | ||
2574 | 2197 | "setgid" : null, | ||
2575 | 2198 | "deleted" : 0, | ||
2576 | 2199 | "usage" : null, | ||
2577 | 2200 | "chroot" : null, | ||
2578 | 2201 | "author" : null, | ||
2579 | 2202 | "console" : "CONSOLE_LOG", | ||
2580 | 2203 | "export" : [], | ||
2581 | 2204 | "respawn_interval" : 5, | ||
2582 | 2205 | "path" : "/com/ubuntu/Upstart/jobs/udev", | ||
2583 | 2206 | "start_on" : [ | ||
2584 | 2207 | { | ||
2585 | 2208 | "name" : "virtual-filesystems", | ||
2586 | 2209 | "value" : 0, | ||
2587 | 2210 | "type" : "EVENT_MATCH" | ||
2588 | 2211 | } | ||
2589 | 2212 | ], | ||
2590 | 2213 | "limits" : [ | ||
2591 | 2214 | { | ||
2592 | 2215 | "rlim_max" : 0, | ||
2593 | 2216 | "rlim_cur" : 0 | ||
2594 | 2217 | }, | ||
2595 | 2218 | { | ||
2596 | 2219 | "rlim_cur" : 0, | ||
2597 | 2220 | "rlim_max" : 0 | ||
2598 | 2221 | }, | ||
2599 | 2222 | { | ||
2600 | 2223 | "rlim_cur" : 0, | ||
2601 | 2224 | "rlim_max" : 0 | ||
2602 | 2225 | }, | ||
2603 | 2226 | { | ||
2604 | 2227 | "rlim_cur" : 0, | ||
2605 | 2228 | "rlim_max" : 0 | ||
2606 | 2229 | }, | ||
2607 | 2230 | { | ||
2608 | 2231 | "rlim_cur" : 0, | ||
2609 | 2232 | "rlim_max" : 0 | ||
2610 | 2233 | }, | ||
2611 | 2234 | { | ||
2612 | 2235 | "rlim_max" : 0, | ||
2613 | 2236 | "rlim_cur" : 0 | ||
2614 | 2237 | }, | ||
2615 | 2238 | { | ||
2616 | 2239 | "rlim_max" : 0, | ||
2617 | 2240 | "rlim_cur" : 0 | ||
2618 | 2241 | }, | ||
2619 | 2242 | { | ||
2620 | 2243 | "rlim_cur" : 0, | ||
2621 | 2244 | "rlim_max" : 0 | ||
2622 | 2245 | }, | ||
2623 | 2246 | { | ||
2624 | 2247 | "rlim_cur" : 0, | ||
2625 | 2248 | "rlim_max" : 0 | ||
2626 | 2249 | }, | ||
2627 | 2250 | { | ||
2628 | 2251 | "rlim_max" : 0, | ||
2629 | 2252 | "rlim_cur" : 0 | ||
2630 | 2253 | }, | ||
2631 | 2254 | { | ||
2632 | 2255 | "rlim_cur" : 0, | ||
2633 | 2256 | "rlim_max" : 0 | ||
2634 | 2257 | }, | ||
2635 | 2258 | { | ||
2636 | 2259 | "rlim_cur" : 0, | ||
2637 | 2260 | "rlim_max" : 0 | ||
2638 | 2261 | }, | ||
2639 | 2262 | { | ||
2640 | 2263 | "rlim_max" : 0, | ||
2641 | 2264 | "rlim_cur" : 0 | ||
2642 | 2265 | }, | ||
2643 | 2266 | { | ||
2644 | 2267 | "rlim_cur" : 0, | ||
2645 | 2268 | "rlim_max" : 0 | ||
2646 | 2269 | }, | ||
2647 | 2270 | { | ||
2648 | 2271 | "rlim_cur" : 0, | ||
2649 | 2272 | "rlim_max" : 0 | ||
2650 | 2273 | }, | ||
2651 | 2274 | { | ||
2652 | 2275 | "rlim_max" : 0, | ||
2653 | 2276 | "rlim_cur" : 0 | ||
2654 | 2277 | } | ||
2655 | 2278 | ], | ||
2656 | 2279 | "instance" : "", | ||
2657 | 2280 | "umask" : 18, | ||
2658 | 2281 | "env" : [], | ||
2659 | 2282 | "version" : null, | ||
2660 | 2283 | "jobs" : [ | ||
2661 | 2284 | { | ||
2662 | 2285 | "failed" : 0, | ||
2663 | 2286 | "path" : "/com/ubuntu/Upstart/jobs/udev/_", | ||
2664 | 2287 | "respawn_count" : 0, | ||
2665 | 2288 | "respawn_time" : 0, | ||
2666 | 2289 | "env" : [ | ||
2667 | 2290 | "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin", | ||
2668 | 2291 | "TERM=linux", | ||
2669 | 2292 | "UPSTART_EVENTS=virtual-filesystems" | ||
2670 | 2293 | ], | ||
2671 | 2294 | "fds" : [], | ||
2672 | 2295 | "goal" : "JOB_START", | ||
2673 | 2296 | "start_env" : [], | ||
2674 | 2297 | "kill_process" : "PROCESS_INVALID", | ||
2675 | 2298 | "pid" : [ | ||
2676 | 2299 | 513, | ||
2677 | 2300 | 0, | ||
2678 | 2301 | 0, | ||
2679 | 2302 | 0, | ||
2680 | 2303 | 0, | ||
2681 | 2304 | 0, | ||
2682 | 2305 | 0 | ||
2683 | 2306 | ], | ||
2684 | 2307 | "state" : "JOB_RUNNING", | ||
2685 | 2308 | "trace_state" : "TRACE_NONE", | ||
2686 | 2309 | "stop_on" : [ | ||
2687 | 2310 | { | ||
2688 | 2311 | "name" : "runlevel", | ||
2689 | 2312 | "value" : 0, | ||
2690 | 2313 | "type" : "EVENT_MATCH", | ||
2691 | 2314 | "env" : [ | ||
2692 | 2315 | "[06]" | ||
2693 | 2316 | ] | ||
2694 | 2317 | } | ||
2695 | 2318 | ], | ||
2696 | 2319 | "trace_forks" : 1, | ||
2697 | 2320 | "exit_status" : 0, | ||
2698 | 2321 | "name" : "", | ||
2699 | 2322 | "log" : [ | ||
2700 | 2323 | { | ||
2701 | 2324 | "path" : null | ||
2702 | 2325 | }, | ||
2703 | 2326 | { | ||
2704 | 2327 | "path" : null | ||
2705 | 2328 | }, | ||
2706 | 2329 | { | ||
2707 | 2330 | "path" : null | ||
2708 | 2331 | }, | ||
2709 | 2332 | { | ||
2710 | 2333 | "path" : null | ||
2711 | 2334 | }, | ||
2712 | 2335 | { | ||
2713 | 2336 | "path" : null | ||
2714 | 2337 | }, | ||
2715 | 2338 | { | ||
2716 | 2339 | "path" : null | ||
2717 | 2340 | }, | ||
2718 | 2341 | { | ||
2719 | 2342 | "path" : null | ||
2720 | 2343 | } | ||
2721 | 2344 | ], | ||
2722 | 2345 | "failed_process" : "PROCESS_INVALID", | ||
2723 | 2346 | "stop_env" : [] | ||
2724 | 2347 | } | ||
2725 | 2348 | ], | ||
2726 | 2349 | "respawn_limit" : 10, | ||
2727 | 2350 | "kill_signal" : 15, | ||
2728 | 2351 | "task" : 0, | ||
2729 | 2352 | "session" : 0, | ||
2730 | 2353 | "reload_signal" : 1, | ||
2731 | 2354 | "nice" : -21, | ||
2732 | 2355 | "oom_score_adj" : 0, | ||
2733 | 2356 | "name" : "udev", | ||
2734 | 2357 | "debug" : 0, | ||
2735 | 2358 | "normalexit" : [], | ||
2736 | 2359 | "setuid" : null | ||
2737 | 2360 | }, | ||
2738 | 2361 | { | ||
2739 | 2362 | "jobs" : [ | ||
2740 | 2363 | { | ||
2741 | 2364 | "respawn_count" : 0, | ||
2742 | 2365 | "respawn_time" : 0, | ||
2743 | 2366 | "failed" : 0, | ||
2744 | 2367 | "path" : "/com/ubuntu/Upstart/jobs/upstart_2dudev_2dbridge/_", | ||
2745 | 2368 | "fds" : [], | ||
2746 | 2369 | "env" : [ | ||
2747 | 2370 | "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin", | ||
2748 | 2371 | "TERM=linux", | ||
2749 | 2372 | "JOB=udev", | ||
2750 | 2373 | "INSTANCE=", | ||
2751 | 2374 | "UPSTART_EVENTS=starting" | ||
2752 | 2375 | ], | ||
2753 | 2376 | "stop_on" : [ | ||
2754 | 2377 | { | ||
2755 | 2378 | "type" : "EVENT_MATCH", | ||
2756 | 2379 | "name" : "stopped", | ||
2757 | 2380 | "value" : 0, | ||
2758 | 2381 | "env" : [ | ||
2759 | 2382 | "udev" | ||
2760 | 2383 | ] | ||
2761 | 2384 | } | ||
2762 | 2385 | ], | ||
2763 | 2386 | "trace_forks" : 2, | ||
2764 | 2387 | "state" : "JOB_RUNNING", | ||
2765 | 2388 | "trace_state" : "TRACE_NONE", | ||
2766 | 2389 | "pid" : [ | ||
2767 | 2390 | 507, | ||
2768 | 2391 | 0, | ||
2769 | 2392 | 0, | ||
2770 | 2393 | 0, | ||
2771 | 2394 | 0, | ||
2772 | 2395 | 0, | ||
2773 | 2396 | 0 | ||
2774 | 2397 | ], | ||
2775 | 2398 | "kill_process" : "PROCESS_INVALID", | ||
2776 | 2399 | "start_env" : [], | ||
2777 | 2400 | "goal" : "JOB_START", | ||
2778 | 2401 | "log" : [ | ||
2779 | 2402 | { | ||
2780 | 2403 | "path" : null | ||
2781 | 2404 | }, | ||
2782 | 2405 | { | ||
2783 | 2406 | "path" : null | ||
2784 | 2407 | }, | ||
2785 | 2408 | { | ||
2786 | 2409 | "path" : null | ||
2787 | 2410 | }, | ||
2788 | 2411 | { | ||
2789 | 2412 | "path" : null | ||
2790 | 2413 | }, | ||
2791 | 2414 | { | ||
2792 | 2415 | "path" : null | ||
2793 | 2416 | }, | ||
2794 | 2417 | { | ||
2795 | 2418 | "path" : null | ||
2796 | 2419 | }, | ||
2797 | 2420 | { | ||
2798 | 2421 | "path" : null | ||
2799 | 2422 | } | ||
2800 | 2423 | ], | ||
2801 | 2424 | "stop_env" : [], | ||
2802 | 2425 | "failed_process" : "PROCESS_INVALID", | ||
2803 | 2426 | "name" : "", | ||
2804 | 2427 | "exit_status" : 0 | ||
2805 | 2428 | } | ||
2806 | 2429 | ], | ||
2807 | 2430 | "respawn_limit" : 10, | ||
2808 | 2431 | "kill_signal" : 15, | ||
2809 | 2432 | "task" : 0, | ||
2810 | 2433 | "session" : 0, | ||
2811 | 2434 | "reload_signal" : 1, | ||
2812 | 2435 | "oom_score_adj" : 0, | ||
2813 | 2436 | "nice" : -21, | ||
2814 | 2437 | "name" : "upstart-udev-bridge", | ||
2815 | 2438 | "debug" : 0, | ||
2816 | 2439 | "setuid" : null, | ||
2817 | 2440 | "normalexit" : [], | ||
2818 | 2441 | "console" : "CONSOLE_LOG", | ||
2819 | 2442 | "export" : [], | ||
2820 | 2443 | "respawn_interval" : 5, | ||
2821 | 2444 | "path" : "/com/ubuntu/Upstart/jobs/upstart_2dudev_2dbridge", | ||
2822 | 2445 | "start_on" : [ | ||
2823 | 2446 | { | ||
2824 | 2447 | "env" : [ | ||
2825 | 2448 | "udev" | ||
2826 | 2449 | ], | ||
2827 | 2450 | "value" : 0, | ||
2828 | 2451 | "name" : "starting", | ||
2829 | 2452 | "type" : "EVENT_MATCH" | ||
2830 | 2453 | } | ||
2831 | 2454 | ], | ||
2832 | 2455 | "limits" : [ | ||
2833 | 2456 | { | ||
2834 | 2457 | "rlim_cur" : 0, | ||
2835 | 2458 | "rlim_max" : 0 | ||
2836 | 2459 | }, | ||
2837 | 2460 | { | ||
2838 | 2461 | "rlim_max" : 0, | ||
2839 | 2462 | "rlim_cur" : 0 | ||
2840 | 2463 | }, | ||
2841 | 2464 | { | ||
2842 | 2465 | "rlim_cur" : 0, | ||
2843 | 2466 | "rlim_max" : 0 | ||
2844 | 2467 | }, | ||
2845 | 2468 | { | ||
2846 | 2469 | "rlim_cur" : 0, | ||
2847 | 2470 | "rlim_max" : 0 | ||
2848 | 2471 | }, | ||
2849 | 2472 | { | ||
2850 | 2473 | "rlim_cur" : 0, | ||
2851 | 2474 | "rlim_max" : 0 | ||
2852 | 2475 | }, | ||
2853 | 2476 | { | ||
2854 | 2477 | "rlim_cur" : 0, | ||
2855 | 2478 | "rlim_max" : 0 | ||
2856 | 2479 | }, | ||
2857 | 2480 | { | ||
2858 | 2481 | "rlim_max" : 0, | ||
2859 | 2482 | "rlim_cur" : 0 | ||
2860 | 2483 | }, | ||
2861 | 2484 | { | ||
2862 | 2485 | "rlim_max" : 0, | ||
2863 | 2486 | "rlim_cur" : 0 | ||
2864 | 2487 | }, | ||
2865 | 2488 | { | ||
2866 | 2489 | "rlim_max" : 0, | ||
2867 | 2490 | "rlim_cur" : 0 | ||
2868 | 2491 | }, | ||
2869 | 2492 | { | ||
2870 | 2493 | "rlim_max" : 0, | ||
2871 | 2494 | "rlim_cur" : 0 | ||
2872 | 2495 | }, | ||
2873 | 2496 | { | ||
2874 | 2497 | "rlim_max" : 0, | ||
2875 | 2498 | "rlim_cur" : 0 | ||
2876 | 2499 | }, | ||
2877 | 2500 | { | ||
2878 | 2501 | "rlim_max" : 0, | ||
2879 | 2502 | "rlim_cur" : 0 | ||
2880 | 2503 | }, | ||
2881 | 2504 | { | ||
2882 | 2505 | "rlim_cur" : 0, | ||
2883 | 2506 | "rlim_max" : 0 | ||
2884 | 2507 | }, | ||
2885 | 2508 | { | ||
2886 | 2509 | "rlim_max" : 0, | ||
2887 | 2510 | "rlim_cur" : 0 | ||
2888 | 2511 | }, | ||
2889 | 2512 | { | ||
2890 | 2513 | "rlim_cur" : 0, | ||
2891 | 2514 | "rlim_max" : 0 | ||
2892 | 2515 | }, | ||
2893 | 2516 | { | ||
2894 | 2517 | "rlim_cur" : 0, | ||
2895 | 2518 | "rlim_max" : 0 | ||
2896 | 2519 | } | ||
2897 | 2520 | ], | ||
2898 | 2521 | "instance" : "", | ||
2899 | 2522 | "env" : [], | ||
2900 | 2523 | "umask" : 18, | ||
2901 | 2524 | "version" : null, | ||
2902 | 2525 | "stop_on" : [ | ||
2903 | 2526 | { | ||
2904 | 2527 | "type" : "EVENT_MATCH", | ||
2905 | 2528 | "name" : "stopped", | ||
2906 | 2529 | "value" : 0, | ||
2907 | 2530 | "env" : [ | ||
2908 | 2531 | "udev" | ||
2909 | 2532 | ] | ||
2910 | 2533 | } | ||
2911 | 2534 | ], | ||
2912 | 2535 | "emits" : [ | ||
2913 | 2536 | "*-device-added", | ||
2914 | 2537 | "*-device-removed", | ||
2915 | 2538 | "*-device-changed", | ||
2916 | 2539 | "*-device-online", | ||
2917 | 2540 | "*-device-offline" | ||
2918 | 2541 | ], | ||
2919 | 2542 | "setgid" : null, | ||
2920 | 2543 | "deleted" : 0, | ||
2921 | 2544 | "usage" : null, | ||
2922 | 2545 | "author" : null, | ||
2923 | 2546 | "chroot" : null, | ||
2924 | 2547 | "apparmor_switch" : null, | ||
2925 | 2548 | "process" : [ | ||
2926 | 2549 | { | ||
2927 | 2550 | "command" : "upstart-udev-bridge --daemon", | ||
2928 | 2551 | "script" : 0 | ||
2929 | 2552 | }, | ||
2930 | 2553 | { | ||
2931 | 2554 | "script" : 0, | ||
2932 | 2555 | "command" : null | ||
2933 | 2556 | }, | ||
2934 | 2557 | { | ||
2935 | 2558 | "command" : null, | ||
2936 | 2559 | "script" : 0 | ||
2937 | 2560 | }, | ||
2938 | 2561 | { | ||
2939 | 2562 | "command" : null, | ||
2940 | 2563 | "script" : 0 | ||
2941 | 2564 | }, | ||
2942 | 2565 | { | ||
2943 | 2566 | "script" : 0, | ||
2944 | 2567 | "command" : null | ||
2945 | 2568 | }, | ||
2946 | 2569 | { | ||
2947 | 2570 | "script" : 0, | ||
2948 | 2571 | "command" : null | ||
2949 | 2572 | }, | ||
2950 | 2573 | { | ||
2951 | 2574 | "script" : 0, | ||
2952 | 2575 | "command" : null | ||
2953 | 2576 | } | ||
2954 | 2577 | ], | ||
2955 | 2578 | "chdir" : null, | ||
2956 | 2579 | "respawn" : 1, | ||
2957 | 2580 | "description" : "Bridge udev events into upstart", | ||
2958 | 2581 | "kill_timeout" : 5, | ||
2959 | 2582 | "expect" : "EXPECT_DAEMON" | ||
2960 | 2583 | }, | ||
2961 | 2584 | { | ||
2962 | 2585 | "version" : null, | ||
2963 | 2586 | "env" : [], | ||
2964 | 2587 | "umask" : 18, | ||
2965 | 2588 | "console" : "CONSOLE_LOG", | ||
2966 | 2589 | "export" : [], | ||
2967 | 2590 | "respawn_interval" : 5, | ||
2968 | 2591 | "instance" : "", | ||
2969 | 2592 | "limits" : [ | ||
2970 | 2593 | { | ||
2971 | 2594 | "rlim_cur" : 0, | ||
2972 | 2595 | "rlim_max" : 0 | ||
2973 | 2596 | }, | ||
2974 | 2597 | { | ||
2975 | 2598 | "rlim_max" : 0, | ||
2976 | 2599 | "rlim_cur" : 0 | ||
2977 | 2600 | }, | ||
2978 | 2601 | { | ||
2979 | 2602 | "rlim_cur" : 0, | ||
2980 | 2603 | "rlim_max" : 0 | ||
2981 | 2604 | }, | ||
2982 | 2605 | { | ||
2983 | 2606 | "rlim_max" : 0, | ||
2984 | 2607 | "rlim_cur" : 0 | ||
2985 | 2608 | }, | ||
2986 | 2609 | { | ||
2987 | 2610 | "rlim_cur" : 0, | ||
2988 | 2611 | "rlim_max" : 0 | ||
2989 | 2612 | }, | ||
2990 | 2613 | { | ||
2991 | 2614 | "rlim_max" : 0, | ||
2992 | 2615 | "rlim_cur" : 0 | ||
2993 | 2616 | }, | ||
2994 | 2617 | { | ||
2995 | 2618 | "rlim_max" : 0, | ||
2996 | 2619 | "rlim_cur" : 0 | ||
2997 | 2620 | }, | ||
2998 | 2621 | { | ||
2999 | 2622 | "rlim_cur" : 0, | ||
3000 | 2623 | "rlim_max" : 0 | ||
3001 | 2624 | }, | ||
3002 | 2625 | { | ||
3003 | 2626 | "rlim_max" : 0, | ||
3004 | 2627 | "rlim_cur" : 0 | ||
3005 | 2628 | }, | ||
3006 | 2629 | { | ||
3007 | 2630 | "rlim_cur" : 0, | ||
3008 | 2631 | "rlim_max" : 0 | ||
3009 | 2632 | }, | ||
3010 | 2633 | { | ||
3011 | 2634 | "rlim_cur" : 0, | ||
3012 | 2635 | "rlim_max" : 0 | ||
3013 | 2636 | }, | ||
3014 | 2637 | { | ||
3015 | 2638 | "rlim_max" : 0, | ||
3016 | 2639 | "rlim_cur" : 0 | ||
3017 | 2640 | }, | ||
3018 | 2641 | { | ||
3019 | 2642 | "rlim_cur" : 0, | ||
3020 | 2643 | "rlim_max" : 0 | ||
3021 | 2644 | }, | ||
3022 | 2645 | { | ||
3023 | 2646 | "rlim_max" : 0, | ||
3024 | 2647 | "rlim_cur" : 0 | ||
3025 | 2648 | }, | ||
3026 | 2649 | { | ||
3027 | 2650 | "rlim_max" : 0, | ||
3028 | 2651 | "rlim_cur" : 0 | ||
3029 | 2652 | }, | ||
3030 | 2653 | { | ||
3031 | 2654 | "rlim_max" : 0, | ||
3032 | 2655 | "rlim_cur" : 0 | ||
3033 | 2656 | } | ||
3034 | 2657 | ], | ||
3035 | 2658 | "start_on" : [ | ||
3036 | 2659 | { | ||
3037 | 2660 | "env" : [ | ||
3038 | 2661 | "DEVICE=[/UL]*", | ||
3039 | 2662 | "MOUNTPOINT=/?*" | ||
3040 | 2663 | ], | ||
3041 | 2664 | "type" : "EVENT_MATCH", | ||
3042 | 2665 | "name" : "mounted", | ||
3043 | 2666 | "value" : 0 | ||
3044 | 2667 | } | ||
3045 | 2668 | ], | ||
3046 | 2669 | "path" : "/com/ubuntu/Upstart/jobs/ureadahead_2dother", | ||
3047 | 2670 | "oom_score_adj" : 0, | ||
3048 | 2671 | "nice" : -21, | ||
3049 | 2672 | "debug" : 0, | ||
3050 | 2673 | "name" : "ureadahead-other", | ||
3051 | 2674 | "setuid" : null, | ||
3052 | 2675 | "normalexit" : [ | ||
3053 | 2676 | 0, | ||
3054 | 2677 | 4 | ||
3055 | 2678 | ], | ||
3056 | 2679 | "respawn_limit" : 10, | ||
3057 | 2680 | "jobs" : [], | ||
3058 | 2681 | "task" : 0, | ||
3059 | 2682 | "kill_signal" : 15, | ||
3060 | 2683 | "session" : 0, | ||
3061 | 2684 | "reload_signal" : 1, | ||
3062 | 2685 | "process" : [ | ||
3063 | 2686 | { | ||
3064 | 2687 | "command" : "/sbin/ureadahead --daemon $MOUNTPOINT", | ||
3065 | 2688 | "script" : 0 | ||
3066 | 2689 | }, | ||
3067 | 2690 | { | ||
3068 | 2691 | "script" : 0, | ||
3069 | 2692 | "command" : null | ||
3070 | 2693 | }, | ||
3071 | 2694 | { | ||
3072 | 2695 | "command" : null, | ||
3073 | 2696 | "script" : 0 | ||
3074 | 2697 | }, | ||
3075 | 2698 | { | ||
3076 | 2699 | "script" : 0, | ||
3077 | 2700 | "command" : null | ||
3078 | 2701 | }, | ||
3079 | 2702 | { | ||
3080 | 2703 | "command" : null, | ||
3081 | 2704 | "script" : 0 | ||
3082 | 2705 | }, | ||
3083 | 2706 | { | ||
3084 | 2707 | "script" : 0, | ||
3085 | 2708 | "command" : null | ||
3086 | 2709 | }, | ||
3087 | 2710 | { | ||
3088 | 2711 | "script" : 0, | ||
3089 | 2712 | "command" : null | ||
3090 | 2713 | } | ||
3091 | 2714 | ], | ||
3092 | 2715 | "respawn" : 0, | ||
3093 | 2716 | "chdir" : null, | ||
3094 | 2717 | "description" : "Read required files in advance (for other mountpoints)", | ||
3095 | 2718 | "kill_timeout" : 5, | ||
3096 | 2719 | "expect" : "EXPECT_FORK", | ||
3097 | 2720 | "apparmor_switch" : null, | ||
3098 | 2721 | "deleted" : 0, | ||
3099 | 2722 | "setgid" : null, | ||
3100 | 2723 | "usage" : null, | ||
3101 | 2724 | "author" : null, | ||
3102 | 2725 | "chroot" : null, | ||
3103 | 2726 | "emits" : [] | ||
3104 | 2727 | }, | ||
3105 | 2728 | { | ||
3106 | 2729 | "process" : [ | ||
3107 | 2730 | { | ||
3108 | 2731 | "command" : "whoopsie", | ||
3109 | 2732 | "script" : 0 | ||
3110 | 2733 | }, | ||
3111 | 2734 | { | ||
3112 | 2735 | "command" : " [ -x /usr/bin/ubiquity-dm ] && { stop; exit 0; }\n\n if ! grep report_crashes=true /etc/default/whoopsie -sqi; then\n stop; exit 0\n fi\n", | ||
3113 | 2736 | "script" : 1 | ||
3114 | 2737 | }, | ||
3115 | 2738 | { | ||
3116 | 2739 | "script" : 0, | ||
3117 | 2740 | "command" : null | ||
3118 | 2741 | }, | ||
3119 | 2742 | { | ||
3120 | 2743 | "command" : null, | ||
3121 | 2744 | "script" : 0 | ||
3122 | 2745 | }, | ||
3123 | 2746 | { | ||
3124 | 2747 | "script" : 0, | ||
3125 | 2748 | "command" : null | ||
3126 | 2749 | }, | ||
3127 | 2750 | { | ||
3128 | 2751 | "script" : 0, | ||
3129 | 2752 | "command" : null | ||
3130 | 2753 | }, | ||
3131 | 2754 | { | ||
3132 | 2755 | "script" : 0, | ||
3133 | 2756 | "command" : null | ||
3134 | 2757 | } | ||
3135 | 2758 | ], | ||
3136 | 2759 | "description" : "crash report submission daemon", | ||
3137 | 2760 | "chdir" : null, | ||
3138 | 2761 | "respawn" : 1, | ||
3139 | 2762 | "kill_timeout" : 5, | ||
3140 | 2763 | "expect" : "EXPECT_FORK", | ||
3141 | 2764 | "apparmor_switch" : null, | ||
3142 | 2765 | "setgid" : null, | ||
3143 | 2766 | "deleted" : 0, | ||
3144 | 2767 | "author" : null, | ||
3145 | 2768 | "usage" : null, | ||
3146 | 2769 | "chroot" : null, | ||
3147 | 2770 | "stop_on" : [ | ||
3148 | 2771 | { | ||
3149 | 2772 | "value" : 0, | ||
3150 | 2773 | "name" : "runlevel", | ||
3151 | 2774 | "type" : "EVENT_MATCH", | ||
3152 | 2775 | "env" : [ | ||
3153 | 2776 | "[!2345]" | ||
3154 | 2777 | ] | ||
3155 | 2778 | } | ||
3156 | 2779 | ], | ||
3157 | 2780 | "emits" : [], | ||
3158 | 2781 | "env" : [ | ||
3159 | 2782 | "CRASH_DB_URL=https://daisy.ubuntu.com" | ||
3160 | 2783 | ], | ||
3161 | 2784 | "umask" : 18, | ||
3162 | 2785 | "version" : null, | ||
3163 | 2786 | "console" : "CONSOLE_LOG", | ||
3164 | 2787 | "export" : [], | ||
3165 | 2788 | "respawn_interval" : 5, | ||
3166 | 2789 | "path" : "/com/ubuntu/Upstart/jobs/whoopsie", | ||
3167 | 2790 | "start_on" : [ | ||
3168 | 2791 | { | ||
3169 | 2792 | "name" : "runlevel", | ||
3170 | 2793 | "value" : 0, | ||
3171 | 2794 | "type" : "EVENT_MATCH", | ||
3172 | 2795 | "env" : [ | ||
3173 | 2796 | "[2345]" | ||
3174 | 2797 | ] | ||
3175 | 2798 | } | ||
3176 | 2799 | ], | ||
3177 | 2800 | "limits" : [ | ||
3178 | 2801 | { | ||
3179 | 2802 | "rlim_max" : 0, | ||
3180 | 2803 | "rlim_cur" : 0 | ||
3181 | 2804 | }, | ||
3182 | 2805 | { | ||
3183 | 2806 | "rlim_cur" : 0, | ||
3184 | 2807 | "rlim_max" : 0 | ||
3185 | 2808 | }, | ||
3186 | 2809 | { | ||
3187 | 2810 | "rlim_cur" : 0, | ||
3188 | 2811 | "rlim_max" : 0 | ||
3189 | 2812 | }, | ||
3190 | 2813 | { | ||
3191 | 2814 | "rlim_cur" : 0, | ||
3192 | 2815 | "rlim_max" : 0 | ||
3193 | 2816 | }, | ||
3194 | 2817 | { | ||
3195 | 2818 | "rlim_cur" : 0, | ||
3196 | 2819 | "rlim_max" : 0 | ||
3197 | 2820 | }, | ||
3198 | 2821 | { | ||
3199 | 2822 | "rlim_cur" : 0, | ||
3200 | 2823 | "rlim_max" : 0 | ||
3201 | 2824 | }, | ||
3202 | 2825 | { | ||
3203 | 2826 | "rlim_max" : 0, | ||
3204 | 2827 | "rlim_cur" : 0 | ||
3205 | 2828 | }, | ||
3206 | 2829 | { | ||
3207 | 2830 | "rlim_max" : 0, | ||
3208 | 2831 | "rlim_cur" : 0 | ||
3209 | 2832 | }, | ||
3210 | 2833 | { | ||
3211 | 2834 | "rlim_max" : 0, | ||
3212 | 2835 | "rlim_cur" : 0 | ||
3213 | 2836 | }, | ||
3214 | 2837 | { | ||
3215 | 2838 | "rlim_max" : 0, | ||
3216 | 2839 | "rlim_cur" : 0 | ||
3217 | 2840 | }, | ||
3218 | 2841 | { | ||
3219 | 2842 | "rlim_max" : 0, | ||
3220 | 2843 | "rlim_cur" : 0 | ||
3221 | 2844 | }, | ||
3222 | 2845 | { | ||
3223 | 2846 | "rlim_cur" : 0, | ||
3224 | 2847 | "rlim_max" : 0 | ||
3225 | 2848 | }, | ||
3226 | 2849 | { | ||
3227 | 2850 | "rlim_max" : 0, | ||
3228 | 2851 | "rlim_cur" : 0 | ||
3229 | 2852 | }, | ||
3230 | 2853 | { | ||
3231 | 2854 | "rlim_cur" : 0, | ||
3232 | 2855 | "rlim_max" : 0 | ||
3233 | 2856 | }, | ||
3234 | 2857 | { | ||
3235 | 2858 | "rlim_max" : 0, | ||
3236 | 2859 | "rlim_cur" : 0 | ||
3237 | 2860 | }, | ||
3238 | 2861 | { | ||
3239 | 2862 | "rlim_cur" : 0, | ||
3240 | 2863 | "rlim_max" : 0 | ||
3241 | 2864 | } | ||
3242 | 2865 | ], | ||
3243 | 2866 | "instance" : "", | ||
3244 | 2867 | "oom_score_adj" : 0, | ||
3245 | 2868 | "nice" : -21, | ||
3246 | 2869 | "name" : "whoopsie", | ||
3247 | 2870 | "debug" : 0, | ||
3248 | 2871 | "setuid" : null, | ||
3249 | 2872 | "normalexit" : [], | ||
3250 | 2873 | "jobs" : [ | ||
3251 | 2874 | { | ||
3252 | 2875 | "exit_status" : 0, | ||
3253 | 2876 | "name" : "", | ||
3254 | 2877 | "failed_process" : "PROCESS_INVALID", | ||
3255 | 2878 | "stop_env" : [], | ||
3256 | 2879 | "log" : [ | ||
3257 | 2880 | { | ||
3258 | 2881 | "path" : null | ||
3259 | 2882 | }, | ||
3260 | 2883 | { | ||
3261 | 2884 | "path" : null | ||
3262 | 2885 | }, | ||
3263 | 2886 | { | ||
3264 | 2887 | "path" : null | ||
3265 | 2888 | }, | ||
3266 | 2889 | { | ||
3267 | 2890 | "path" : null | ||
3268 | 2891 | }, | ||
3269 | 2892 | { | ||
3270 | 2893 | "path" : null | ||
3271 | 2894 | }, | ||
3272 | 2895 | { | ||
3273 | 2896 | "path" : null | ||
3274 | 2897 | }, | ||
3275 | 2898 | { | ||
3276 | 2899 | "path" : null | ||
3277 | 2900 | } | ||
3278 | 2901 | ], | ||
3279 | 2902 | "goal" : "JOB_START", | ||
3280 | 2903 | "start_env" : [], | ||
3281 | 2904 | "kill_process" : "PROCESS_INVALID", | ||
3282 | 2905 | "pid" : [ | ||
3283 | 2906 | 1204, | ||
3284 | 2907 | 0, | ||
3285 | 2908 | 0, | ||
3286 | 2909 | 0, | ||
3287 | 2910 | 0, | ||
3288 | 2911 | 0, | ||
3289 | 2912 | 0 | ||
3290 | 2913 | ], | ||
3291 | 2914 | "trace_state" : "TRACE_NONE", | ||
3292 | 2915 | "state" : "JOB_RUNNING", | ||
3293 | 2916 | "trace_forks" : 1, | ||
3294 | 2917 | "stop_on" : [ | ||
3295 | 2918 | { | ||
3296 | 2919 | "type" : "EVENT_MATCH", | ||
3297 | 2920 | "value" : 0, | ||
3298 | 2921 | "name" : "runlevel", | ||
3299 | 2922 | "env" : [ | ||
3300 | 2923 | "[!2345]" | ||
3301 | 2924 | ] | ||
3302 | 2925 | } | ||
3303 | 2926 | ], | ||
3304 | 2927 | "env" : [ | ||
3305 | 2928 | "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin", | ||
3306 | 2929 | "TERM=linux", | ||
3307 | 2930 | "CRASH_DB_URL=https://daisy.ubuntu.com", | ||
3308 | 2931 | "RUNLEVEL=2", | ||
3309 | 2932 | "PREVLEVEL=N", | ||
3310 | 2933 | "UPSTART_EVENTS=runlevel" | ||
3311 | 2934 | ], | ||
3312 | 2935 | "fds" : [], | ||
3313 | 2936 | "path" : "/com/ubuntu/Upstart/jobs/whoopsie/_", | ||
3314 | 2937 | "failed" : 0, | ||
3315 | 2938 | "respawn_time" : 0, | ||
3316 | 2939 | "respawn_count" : 0 | ||
3317 | 2940 | } | ||
3318 | 2941 | ], | ||
3319 | 2942 | "respawn_limit" : 10, | ||
3320 | 2943 | "task" : 0, | ||
3321 | 2944 | "kill_signal" : 15, | ||
3322 | 2945 | "session" : 0, | ||
3323 | 2946 | "reload_signal" : 1 | ||
3324 | 2947 | }, | ||
3325 | 2948 | { | ||
3326 | 2949 | "usage" : null, | ||
3327 | 2950 | "author" : null, | ||
3328 | 2951 | "chroot" : null, | ||
3329 | 2952 | "setgid" : null, | ||
3330 | 2953 | "deleted" : 0, | ||
3331 | 2954 | "emits" : [], | ||
3332 | 2955 | "stop_on" : [ | ||
3333 | 2956 | { | ||
3334 | 2957 | "env" : [ | ||
3335 | 2958 | "[!2345]" | ||
3336 | 2959 | ], | ||
3337 | 2960 | "name" : "runlevel", | ||
3338 | 2961 | "value" : 0, | ||
3339 | 2962 | "type" : "EVENT_MATCH" | ||
3340 | 2963 | } | ||
3341 | 2964 | ], | ||
3342 | 2965 | "kill_timeout" : 5, | ||
3343 | 2966 | "expect" : "EXPECT_NONE", | ||
3344 | 2967 | "process" : [ | ||
3345 | 2968 | { | ||
3346 | 2969 | "command" : null, | ||
3347 | 2970 | "script" : 0 | ||
3348 | 2971 | }, | ||
3349 | 2972 | { | ||
3350 | 2973 | "command" : " . /etc/default/apport\n [ \"$enabled\" = \"1\" ] || [ \"$force_start\" = \"1\" ] || exit 0\n\n mkdir -p -m 1777 /var/crash\n\n # check for kernel crash dump, convert it to apport report\n if [ -e /var/crash/vmcore ] || [ -n \"`ls /var/crash | egrep ^[0-9]{12}$`\" ]\n then\n\t/usr/share/apport/kernel_crashdump || true\n fi\n\n # check for incomplete suspend/resume or hibernate\n if [ -e /var/lib/pm-utils/status ]\n then\n /usr/share/apport/apportcheckresume || true\n rm -f /var/lib/pm-utils/status\n rm -f /var/lib/pm-utils/resume-hang.log\n fi\n\n echo \"|/usr/share/apport/apport %p %s %c\" > /proc/sys/kernel/core_pattern\n echo 2 > /proc/sys/fs/suid_dumpable\n", | ||
3351 | 2974 | "script" : 1 | ||
3352 | 2975 | }, | ||
3353 | 2976 | { | ||
3354 | 2977 | "script" : 0, | ||
3355 | 2978 | "command" : null | ||
3356 | 2979 | }, | ||
3357 | 2980 | { | ||
3358 | 2981 | "command" : null, | ||
3359 | 2982 | "script" : 0 | ||
3360 | 2983 | }, | ||
3361 | 2984 | { | ||
3362 | 2985 | "command" : " # Check for a hung resume. If we find one try and grab everything\n # we can to aid in its discovery\n if [ -e /var/lib/pm-utils/status ]\n then\n\tps -wwef > /var/lib/pm-utils/resume-hang.log\n fi\n\n if [ \"`dd if=/proc/sys/kernel/core_pattern count=1 bs=1 2>/dev/null`\" != \"|\" ]\n then\n\texit 1\n else\n\techo 0 > /proc/sys/fs/suid_dumpable\n\techo \"core\" > /proc/sys/kernel/core_pattern\n fi\n", | ||
3363 | 2986 | "script" : 1 | ||
3364 | 2987 | }, | ||
3365 | 2988 | { | ||
3366 | 2989 | "command" : null, | ||
3367 | 2990 | "script" : 0 | ||
3368 | 2991 | }, | ||
3369 | 2992 | { | ||
3370 | 2993 | "script" : 0, | ||
3371 | 2994 | "command" : null | ||
3372 | 2995 | } | ||
3373 | 2996 | ], | ||
3374 | 2997 | "respawn" : 0, | ||
3375 | 2998 | "chdir" : null, | ||
3376 | 2999 | "description" : "automatic crash report generation", | ||
3377 | 3000 | "apparmor_switch" : null, | ||
3378 | 3001 | "normalexit" : [], | ||
3379 | 3002 | "setuid" : null, | ||
3380 | 3003 | "nice" : -21, | ||
3381 | 3004 | "oom_score_adj" : 0, | ||
3382 | 3005 | "name" : "apport", | ||
3383 | 3006 | "debug" : 0, | ||
3384 | 3007 | "task" : 0, | ||
3385 | 3008 | "kill_signal" : 15, | ||
3386 | 3009 | "session" : 0, | ||
3387 | 3010 | "reload_signal" : 1, | ||
3388 | 3011 | "jobs" : [ | ||
3389 | 3012 | { | ||
3390 | 3013 | "goal" : "JOB_START", | ||
3391 | 3014 | "kill_process" : "PROCESS_INVALID", | ||
3392 | 3015 | "start_env" : [], | ||
3393 | 3016 | "pid" : [ | ||
3394 | 3017 | 0, | ||
3395 | 3018 | 0, | ||
3396 | 3019 | 0, | ||
3397 | 3020 | 0, | ||
3398 | 3021 | 0, | ||
3399 | 3022 | 0, | ||
3400 | 3023 | 0 | ||
3401 | 3024 | ], | ||
3402 | 3025 | "state" : "JOB_RUNNING", | ||
3403 | 3026 | "trace_state" : "TRACE_NONE", | ||
3404 | 3027 | "stop_on" : [ | ||
3405 | 3028 | { | ||
3406 | 3029 | "value" : 0, | ||
3407 | 3030 | "name" : "runlevel", | ||
3408 | 3031 | "type" : "EVENT_MATCH", | ||
3409 | 3032 | "env" : [ | ||
3410 | 3033 | "[!2345]" | ||
3411 | 3034 | ] | ||
3412 | 3035 | } | ||
3413 | 3036 | ], | ||
3414 | 3037 | "trace_forks" : 0, | ||
3415 | 3038 | "exit_status" : 0, | ||
3416 | 3039 | "name" : "", | ||
3417 | 3040 | "log" : [ | ||
3418 | 3041 | { | ||
3419 | 3042 | "path" : null | ||
3420 | 3043 | }, | ||
3421 | 3044 | { | ||
3422 | 3045 | "path" : null | ||
3423 | 3046 | }, | ||
3424 | 3047 | { | ||
3425 | 3048 | "path" : null | ||
3426 | 3049 | }, | ||
3427 | 3050 | { | ||
3428 | 3051 | "path" : null | ||
3429 | 3052 | }, | ||
3430 | 3053 | { | ||
3431 | 3054 | "path" : null | ||
3432 | 3055 | }, | ||
3433 | 3056 | { | ||
3434 | 3057 | "path" : null | ||
3435 | 3058 | }, | ||
3436 | 3059 | { | ||
3437 | 3060 | "path" : null | ||
3438 | 3061 | } | ||
3439 | 3062 | ], | ||
3440 | 3063 | "failed_process" : "PROCESS_INVALID", | ||
3441 | 3064 | "stop_env" : [], | ||
3442 | 3065 | "failed" : 0, | ||
3443 | 3066 | "path" : "/com/ubuntu/Upstart/jobs/apport/_", | ||
3444 | 3067 | "respawn_count" : 0, | ||
3445 | 3068 | "respawn_time" : 0, | ||
3446 | 3069 | "env" : [ | ||
3447 | 3070 | "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin", | ||
3448 | 3071 | "TERM=linux", | ||
3449 | 3072 | "enabled=1", | ||
3450 | 3073 | "RUNLEVEL=2", | ||
3451 | 3074 | "PREVLEVEL=N", | ||
3452 | 3075 | "UPSTART_EVENTS=runlevel" | ||
3453 | 3076 | ], | ||
3454 | 3077 | "fds" : [] | ||
3455 | 3078 | } | ||
3456 | 3079 | ], | ||
3457 | 3080 | "respawn_limit" : 10, | ||
3458 | 3081 | "umask" : 18, | ||
3459 | 3082 | "env" : [ | ||
3460 | 3083 | "enabled=1" | ||
3461 | 3084 | ], | ||
3462 | 3085 | "version" : null, | ||
3463 | 3086 | "respawn_interval" : 5, | ||
3464 | 3087 | "path" : "/com/ubuntu/Upstart/jobs/apport", | ||
3465 | 3088 | "limits" : [ | ||
3466 | 3089 | { | ||
3467 | 3090 | "rlim_max" : 0, | ||
3468 | 3091 | "rlim_cur" : 0 | ||
3469 | 3092 | }, | ||
3470 | 3093 | { | ||
3471 | 3094 | "rlim_max" : 0, | ||
3472 | 3095 | "rlim_cur" : 0 | ||
3473 | 3096 | }, | ||
3474 | 3097 | { | ||
3475 | 3098 | "rlim_max" : 0, | ||
3476 | 3099 | "rlim_cur" : 0 | ||
3477 | 3100 | }, | ||
3478 | 3101 | { | ||
3479 | 3102 | "rlim_cur" : 0, | ||
3480 | 3103 | "rlim_max" : 0 | ||
3481 | 3104 | }, | ||
3482 | 3105 | { | ||
3483 | 3106 | "rlim_cur" : 0, | ||
3484 | 3107 | "rlim_max" : 0 | ||
3485 | 3108 | }, | ||
3486 | 3109 | { | ||
3487 | 3110 | "rlim_max" : 0, | ||
3488 | 3111 | "rlim_cur" : 0 | ||
3489 | 3112 | }, | ||
3490 | 3113 | { | ||
3491 | 3114 | "rlim_max" : 0, | ||
3492 | 3115 | "rlim_cur" : 0 | ||
3493 | 3116 | }, | ||
3494 | 3117 | { | ||
3495 | 3118 | "rlim_max" : 0, | ||
3496 | 3119 | "rlim_cur" : 0 | ||
3497 | 3120 | }, | ||
3498 | 3121 | { | ||
3499 | 3122 | "rlim_cur" : 0, | ||
3500 | 3123 | "rlim_max" : 0 | ||
3501 | 3124 | }, | ||
3502 | 3125 | { | ||
3503 | 3126 | "rlim_cur" : 0, | ||
3504 | 3127 | "rlim_max" : 0 | ||
3505 | 3128 | }, | ||
3506 | 3129 | { | ||
3507 | 3130 | "rlim_max" : 0, | ||
3508 | 3131 | "rlim_cur" : 0 | ||
3509 | 3132 | }, | ||
3510 | 3133 | { | ||
3511 | 3134 | "rlim_max" : 0, | ||
3512 | 3135 | "rlim_cur" : 0 | ||
3513 | 3136 | }, | ||
3514 | 3137 | { | ||
3515 | 3138 | "rlim_cur" : 0, | ||
3516 | 3139 | "rlim_max" : 0 | ||
3517 | 3140 | }, | ||
3518 | 3141 | { | ||
3519 | 3142 | "rlim_max" : 0, | ||
3520 | 3143 | "rlim_cur" : 0 | ||
3521 | 3144 | }, | ||
3522 | 3145 | { | ||
3523 | 3146 | "rlim_max" : 0, | ||
3524 | 3147 | "rlim_cur" : 0 | ||
3525 | 3148 | }, | ||
3526 | 3149 | { | ||
3527 | 3150 | "rlim_max" : 0, | ||
3528 | 3151 | "rlim_cur" : 0 | ||
3529 | 3152 | } | ||
3530 | 3153 | ], | ||
3531 | 3154 | "instance" : "", | ||
3532 | 3155 | "start_on" : [ | ||
3533 | 3156 | { | ||
3534 | 3157 | "env" : [ | ||
3535 | 3158 | "[2345]" | ||
3536 | 3159 | ], | ||
3537 | 3160 | "name" : "runlevel", | ||
3538 | 3161 | "value" : 0, | ||
3539 | 3162 | "type" : "EVENT_MATCH" | ||
3540 | 3163 | } | ||
3541 | 3164 | ], | ||
3542 | 3165 | "console" : "CONSOLE_LOG", | ||
3543 | 3166 | "export" : [] | ||
3544 | 3167 | }, | ||
3545 | 3168 | { | ||
3546 | 3169 | "respawn" : 0, | ||
3547 | 3170 | "description" : "set console keymap", | ||
3548 | 3171 | "chdir" : null, | ||
3549 | 3172 | "process" : [ | ||
3550 | 3173 | { | ||
3551 | 3174 | "command" : "loadkeys /etc/console-setup/cached.kmap.gz", | ||
3552 | 3175 | "script" : 0 | ||
3553 | 3176 | }, | ||
3554 | 3177 | { | ||
3555 | 3178 | "script" : 0, | ||
3556 | 3179 | "command" : null | ||
3557 | 3180 | }, | ||
3558 | 3181 | { | ||
3559 | 3182 | "command" : null, | ||
3560 | 3183 | "script" : 0 | ||
3561 | 3184 | }, | ||
3562 | 3185 | { | ||
3563 | 3186 | "command" : null, | ||
3564 | 3187 | "script" : 0 | ||
3565 | 3188 | }, | ||
3566 | 3189 | { | ||
3567 | 3190 | "command" : null, | ||
3568 | 3191 | "script" : 0 | ||
3569 | 3192 | }, | ||
3570 | 3193 | { | ||
3571 | 3194 | "script" : 0, | ||
3572 | 3195 | "command" : null | ||
3573 | 3196 | }, | ||
3574 | 3197 | { | ||
3575 | 3198 | "command" : null, | ||
3576 | 3199 | "script" : 0 | ||
3577 | 3200 | } | ||
3578 | 3201 | ], | ||
3579 | 3202 | "expect" : "EXPECT_NONE", | ||
3580 | 3203 | "kill_timeout" : 5, | ||
3581 | 3204 | "apparmor_switch" : null, | ||
3582 | 3205 | "setgid" : null, | ||
3583 | 3206 | "deleted" : 0, | ||
3584 | 3207 | "usage" : null, | ||
3585 | 3208 | "author" : null, | ||
3586 | 3209 | "chroot" : null, | ||
3587 | 3210 | "emits" : [], | ||
3588 | 3211 | "env" : [], | ||
3589 | 3212 | "umask" : 18, | ||
3590 | 3213 | "version" : null, | ||
3591 | 3214 | "export" : [], | ||
3592 | 3215 | "console" : "CONSOLE_LOG", | ||
3593 | 3216 | "path" : "/com/ubuntu/Upstart/jobs/console_2dsetup", | ||
3594 | 3217 | "instance" : "", | ||
3595 | 3218 | "limits" : [ | ||
3596 | 3219 | { | ||
3597 | 3220 | "rlim_max" : 0, | ||
3598 | 3221 | "rlim_cur" : 0 | ||
3599 | 3222 | }, | ||
3600 | 3223 | { | ||
3601 | 3224 | "rlim_max" : 0, | ||
3602 | 3225 | "rlim_cur" : 0 | ||
3603 | 3226 | }, | ||
3604 | 3227 | { | ||
3605 | 3228 | "rlim_max" : 0, | ||
3606 | 3229 | "rlim_cur" : 0 | ||
3607 | 3230 | }, | ||
3608 | 3231 | { | ||
3609 | 3232 | "rlim_max" : 0, | ||
3610 | 3233 | "rlim_cur" : 0 | ||
3611 | 3234 | }, | ||
3612 | 3235 | { | ||
3613 | 3236 | "rlim_max" : 0, | ||
3614 | 3237 | "rlim_cur" : 0 | ||
3615 | 3238 | }, | ||
3616 | 3239 | { | ||
3617 | 3240 | "rlim_max" : 0, | ||
3618 | 3241 | "rlim_cur" : 0 | ||
3619 | 3242 | }, | ||
3620 | 3243 | { | ||
3621 | 3244 | "rlim_max" : 0, | ||
3622 | 3245 | "rlim_cur" : 0 | ||
3623 | 3246 | }, | ||
3624 | 3247 | { | ||
3625 | 3248 | "rlim_max" : 0, | ||
3626 | 3249 | "rlim_cur" : 0 | ||
3627 | 3250 | }, | ||
3628 | 3251 | { | ||
3629 | 3252 | "rlim_cur" : 0, | ||
3630 | 3253 | "rlim_max" : 0 | ||
3631 | 3254 | }, | ||
3632 | 3255 | { | ||
3633 | 3256 | "rlim_cur" : 0, | ||
3634 | 3257 | "rlim_max" : 0 | ||
3635 | 3258 | }, | ||
3636 | 3259 | { | ||
3637 | 3260 | "rlim_cur" : 0, | ||
3638 | 3261 | "rlim_max" : 0 | ||
3639 | 3262 | }, | ||
3640 | 3263 | { | ||
3641 | 3264 | "rlim_max" : 0, | ||
3642 | 3265 | "rlim_cur" : 0 | ||
3643 | 3266 | }, | ||
3644 | 3267 | { | ||
3645 | 3268 | "rlim_cur" : 0, | ||
3646 | 3269 | "rlim_max" : 0 | ||
3647 | 3270 | }, | ||
3648 | 3271 | { | ||
3649 | 3272 | "rlim_cur" : 0, | ||
3650 | 3273 | "rlim_max" : 0 | ||
3651 | 3274 | }, | ||
3652 | 3275 | { | ||
3653 | 3276 | "rlim_cur" : 0, | ||
3654 | 3277 | "rlim_max" : 0 | ||
3655 | 3278 | }, | ||
3656 | 3279 | { | ||
3657 | 3280 | "rlim_cur" : 0, | ||
3658 | 3281 | "rlim_max" : 0 | ||
3659 | 3282 | } | ||
3660 | 3283 | ], | ||
3661 | 3284 | "start_on" : [ | ||
3662 | 3285 | { | ||
3663 | 3286 | "value" : 0, | ||
3664 | 3287 | "name" : "virtual-filesystems", | ||
3665 | 3288 | "type" : "EVENT_MATCH" | ||
3666 | 3289 | }, | ||
3667 | 3290 | { | ||
3668 | 3291 | "value" : 0, | ||
3669 | 3292 | "name" : "starting", | ||
3670 | 3293 | "type" : "EVENT_MATCH", | ||
3671 | 3294 | "env" : [ | ||
3672 | 3295 | "rcS" | ||
3673 | 3296 | ] | ||
3674 | 3297 | }, | ||
3675 | 3298 | { | ||
3676 | 3299 | "value" : 0, | ||
3677 | 3300 | "type" : "EVENT_OR" | ||
3678 | 3301 | }, | ||
3679 | 3302 | { | ||
3680 | 3303 | "env" : [ | ||
3681 | 3304 | "mountall-shell" | ||
3682 | 3305 | ], | ||
3683 | 3306 | "name" : "starting", | ||
3684 | 3307 | "value" : 0, | ||
3685 | 3308 | "type" : "EVENT_MATCH" | ||
3686 | 3309 | }, | ||
3687 | 3310 | { | ||
3688 | 3311 | "type" : "EVENT_OR", | ||
3689 | 3312 | "value" : 0 | ||
3690 | 3313 | } | ||
3691 | 3314 | ], | ||
3692 | 3315 | "respawn_interval" : 5, | ||
3693 | 3316 | "name" : "console-setup", | ||
3694 | 3317 | "debug" : 0, | ||
3695 | 3318 | "oom_score_adj" : 0, | ||
3696 | 3319 | "nice" : -21, | ||
3697 | 3320 | "normalexit" : [], | ||
3698 | 3321 | "setuid" : null, | ||
3699 | 3322 | "jobs" : [], | ||
3700 | 3323 | "respawn_limit" : 10, | ||
3701 | 3324 | "reload_signal" : 1, | ||
3702 | 3325 | "session" : 0, | ||
3703 | 3326 | "task" : 1, | ||
3704 | 3327 | "kill_signal" : 15 | ||
3705 | 3328 | }, | ||
3706 | 3329 | { | ||
3707 | 3330 | "setuid" : null, | ||
3708 | 3331 | "normalexit" : [], | ||
3709 | 3332 | "oom_score_adj" : 0, | ||
3710 | 3333 | "nice" : -21, | ||
3711 | 3334 | "debug" : 0, | ||
3712 | 3335 | "name" : "hwclock-save", | ||
3713 | 3336 | "kill_signal" : 15, | ||
3714 | 3337 | "task" : 1, | ||
3715 | 3338 | "reload_signal" : 1, | ||
3716 | 3339 | "session" : 0, | ||
3717 | 3340 | "respawn_limit" : 10, | ||
3718 | 3341 | "jobs" : [], | ||
3719 | 3342 | "version" : null, | ||
3720 | 3343 | "env" : [], | ||
3721 | 3344 | "umask" : 18, | ||
3722 | 3345 | "respawn_interval" : 5, | ||
3723 | 3346 | "instance" : "", | ||
3724 | 3347 | "limits" : [ | ||
3725 | 3348 | { | ||
3726 | 3349 | "rlim_max" : 0, | ||
3727 | 3350 | "rlim_cur" : 0 | ||
3728 | 3351 | }, | ||
3729 | 3352 | { | ||
3730 | 3353 | "rlim_max" : 0, | ||
3731 | 3354 | "rlim_cur" : 0 | ||
3732 | 3355 | }, | ||
3733 | 3356 | { | ||
3734 | 3357 | "rlim_max" : 0, | ||
3735 | 3358 | "rlim_cur" : 0 | ||
3736 | 3359 | }, | ||
3737 | 3360 | { | ||
3738 | 3361 | "rlim_max" : 0, | ||
3739 | 3362 | "rlim_cur" : 0 | ||
3740 | 3363 | }, | ||
3741 | 3364 | { | ||
3742 | 3365 | "rlim_cur" : 0, | ||
3743 | 3366 | "rlim_max" : 0 | ||
3744 | 3367 | }, | ||
3745 | 3368 | { | ||
3746 | 3369 | "rlim_cur" : 0, | ||
3747 | 3370 | "rlim_max" : 0 | ||
3748 | 3371 | }, | ||
3749 | 3372 | { | ||
3750 | 3373 | "rlim_max" : 0, | ||
3751 | 3374 | "rlim_cur" : 0 | ||
3752 | 3375 | }, | ||
3753 | 3376 | { | ||
3754 | 3377 | "rlim_max" : 0, | ||
3755 | 3378 | "rlim_cur" : 0 | ||
3756 | 3379 | }, | ||
3757 | 3380 | { | ||
3758 | 3381 | "rlim_max" : 0, | ||
3759 | 3382 | "rlim_cur" : 0 | ||
3760 | 3383 | }, | ||
3761 | 3384 | { | ||
3762 | 3385 | "rlim_cur" : 0, | ||
3763 | 3386 | "rlim_max" : 0 | ||
3764 | 3387 | }, | ||
3765 | 3388 | { | ||
3766 | 3389 | "rlim_cur" : 0, | ||
3767 | 3390 | "rlim_max" : 0 | ||
3768 | 3391 | }, | ||
3769 | 3392 | { | ||
3770 | 3393 | "rlim_cur" : 0, | ||
3771 | 3394 | "rlim_max" : 0 | ||
3772 | 3395 | }, | ||
3773 | 3396 | { | ||
3774 | 3397 | "rlim_cur" : 0, | ||
3775 | 3398 | "rlim_max" : 0 | ||
3776 | 3399 | }, | ||
3777 | 3400 | { | ||
3778 | 3401 | "rlim_max" : 0, | ||
3779 | 3402 | "rlim_cur" : 0 | ||
3780 | 3403 | }, | ||
3781 | 3404 | { | ||
3782 | 3405 | "rlim_cur" : 0, | ||
3783 | 3406 | "rlim_max" : 0 | ||
3784 | 3407 | }, | ||
3785 | 3408 | { | ||
3786 | 3409 | "rlim_cur" : 0, | ||
3787 | 3410 | "rlim_max" : 0 | ||
3788 | 3411 | } | ||
3789 | 3412 | ], | ||
3790 | 3413 | "start_on" : [ | ||
3791 | 3414 | { | ||
3792 | 3415 | "env" : [ | ||
3793 | 3416 | "[06]" | ||
3794 | 3417 | ], | ||
3795 | 3418 | "value" : 0, | ||
3796 | 3419 | "name" : "runlevel", | ||
3797 | 3420 | "type" : "EVENT_MATCH" | ||
3798 | 3421 | } | ||
3799 | 3422 | ], | ||
3800 | 3423 | "path" : "/com/ubuntu/Upstart/jobs/hwclock_2dsave", | ||
3801 | 3424 | "console" : "CONSOLE_LOG", | ||
3802 | 3425 | "export" : [], | ||
3803 | 3426 | "author" : null, | ||
3804 | 3427 | "usage" : null, | ||
3805 | 3428 | "chroot" : null, | ||
3806 | 3429 | "deleted" : 0, | ||
3807 | 3430 | "setgid" : null, | ||
3808 | 3431 | "emits" : [], | ||
3809 | 3432 | "kill_timeout" : 5, | ||
3810 | 3433 | "expect" : "EXPECT_NONE", | ||
3811 | 3434 | "process" : [ | ||
3812 | 3435 | { | ||
3813 | 3436 | "command" : ". /etc/default/rcS\n[ \"$UTC\" = \"yes\" ] && tz=\"--utc\" || tz=\"--localtime\"\n[ \"$BADYEAR\" = \"yes\" ] && badyear=\"--badyear\"\nexec hwclock --rtc=/dev/rtc0 --systohc $tz --noadjfile $badyear\n", | ||
3814 | 3437 | "script" : 1 | ||
3815 | 3438 | }, | ||
3816 | 3439 | { | ||
3817 | 3440 | "command" : null, | ||
3818 | 3441 | "script" : 0 | ||
3819 | 3442 | }, | ||
3820 | 3443 | { | ||
3821 | 3444 | "command" : null, | ||
3822 | 3445 | "script" : 0 | ||
3823 | 3446 | }, | ||
3824 | 3447 | { | ||
3825 | 3448 | "command" : null, | ||
3826 | 3449 | "script" : 0 | ||
3827 | 3450 | }, | ||
3828 | 3451 | { | ||
3829 | 3452 | "script" : 0, | ||
3830 | 3453 | "command" : null | ||
3831 | 3454 | }, | ||
3832 | 3455 | { | ||
3833 | 3456 | "command" : null, | ||
3834 | 3457 | "script" : 0 | ||
3835 | 3458 | }, | ||
3836 | 3459 | { | ||
3837 | 3460 | "script" : 0, | ||
3838 | 3461 | "command" : null | ||
3839 | 3462 | } | ||
3840 | 3463 | ], | ||
3841 | 3464 | "description" : "save system clock to hardware clock", | ||
3842 | 3465 | "chdir" : null, | ||
3843 | 3466 | "respawn" : 0, | ||
3844 | 3467 | "apparmor_switch" : null | ||
3845 | 3468 | }, | ||
3846 | 3469 | { | ||
3847 | 3470 | "version" : null, | ||
3848 | 3471 | "umask" : 18, | ||
3849 | 3472 | "env" : [], | ||
3850 | 3473 | "respawn_interval" : 5, | ||
3851 | 3474 | "start_on" : [ | ||
3852 | 3475 | { | ||
3853 | 3476 | "env" : [ | ||
3854 | 3477 | "[2345]" | ||
3855 | 3478 | ], | ||
3856 | 3479 | "name" : "runlevel", | ||
3857 | 3480 | "value" : 0, | ||
3858 | 3481 | "type" : "EVENT_MATCH" | ||
3859 | 3482 | } | ||
3860 | 3483 | ], | ||
3861 | 3484 | "limits" : [ | ||
3862 | 3485 | { | ||
3863 | 3486 | "rlim_cur" : 0, | ||
3864 | 3487 | "rlim_max" : 0 | ||
3865 | 3488 | }, | ||
3866 | 3489 | { | ||
3867 | 3490 | "rlim_cur" : 0, | ||
3868 | 3491 | "rlim_max" : 0 | ||
3869 | 3492 | }, | ||
3870 | 3493 | { | ||
3871 | 3494 | "rlim_max" : 0, | ||
3872 | 3495 | "rlim_cur" : 0 | ||
3873 | 3496 | }, | ||
3874 | 3497 | { | ||
3875 | 3498 | "rlim_cur" : 0, | ||
3876 | 3499 | "rlim_max" : 0 | ||
3877 | 3500 | }, | ||
3878 | 3501 | { | ||
3879 | 3502 | "rlim_cur" : 0, | ||
3880 | 3503 | "rlim_max" : 0 | ||
3881 | 3504 | }, | ||
3882 | 3505 | { | ||
3883 | 3506 | "rlim_max" : 0, | ||
3884 | 3507 | "rlim_cur" : 0 | ||
3885 | 3508 | }, | ||
3886 | 3509 | { | ||
3887 | 3510 | "rlim_cur" : 0, | ||
3888 | 3511 | "rlim_max" : 0 | ||
3889 | 3512 | }, | ||
3890 | 3513 | { | ||
3891 | 3514 | "rlim_max" : 0, | ||
3892 | 3515 | "rlim_cur" : 0 | ||
3893 | 3516 | }, | ||
3894 | 3517 | { | ||
3895 | 3518 | "rlim_cur" : 0, | ||
3896 | 3519 | "rlim_max" : 0 | ||
3897 | 3520 | }, | ||
3898 | 3521 | { | ||
3899 | 3522 | "rlim_max" : 0, | ||
3900 | 3523 | "rlim_cur" : 0 | ||
3901 | 3524 | }, | ||
3902 | 3525 | { | ||
3903 | 3526 | "rlim_cur" : 0, | ||
3904 | 3527 | "rlim_max" : 0 | ||
3905 | 3528 | }, | ||
3906 | 3529 | { | ||
3907 | 3530 | "rlim_max" : 0, | ||
3908 | 3531 | "rlim_cur" : 0 | ||
3909 | 3532 | }, | ||
3910 | 3533 | { | ||
3911 | 3534 | "rlim_cur" : 0, | ||
3912 | 3535 | "rlim_max" : 0 | ||
3913 | 3536 | }, | ||
3914 | 3537 | { | ||
3915 | 3538 | "rlim_cur" : 0, | ||
3916 | 3539 | "rlim_max" : 0 | ||
3917 | 3540 | }, | ||
3918 | 3541 | { | ||
3919 | 3542 | "rlim_max" : 0, | ||
3920 | 3543 | "rlim_cur" : 0 | ||
3921 | 3544 | }, | ||
3922 | 3545 | { | ||
3923 | 3546 | "rlim_cur" : 0, | ||
3924 | 3547 | "rlim_max" : 0 | ||
3925 | 3548 | } | ||
3926 | 3549 | ], | ||
3927 | 3550 | "instance" : "", | ||
3928 | 3551 | "path" : "/com/ubuntu/Upstart/jobs/irqbalance", | ||
3929 | 3552 | "console" : "CONSOLE_LOG", | ||
3930 | 3553 | "export" : [], | ||
3931 | 3554 | "setuid" : null, | ||
3932 | 3555 | "normalexit" : [], | ||
3933 | 3556 | "nice" : -21, | ||
3934 | 3557 | "oom_score_adj" : 0, | ||
3935 | 3558 | "debug" : 0, | ||
3936 | 3559 | "name" : "irqbalance", | ||
3937 | 3560 | "task" : 0, | ||
3938 | 3561 | "kill_signal" : 15, | ||
3939 | 3562 | "session" : 0, | ||
3940 | 3563 | "reload_signal" : 1, | ||
3941 | 3564 | "respawn_limit" : 10, | ||
3942 | 3565 | "jobs" : [], | ||
3943 | 3566 | "kill_timeout" : 5, | ||
3944 | 3567 | "expect" : "EXPECT_FORK", | ||
3945 | 3568 | "process" : [ | ||
3946 | 3569 | { | ||
3947 | 3570 | "command" : "\ttest -f /etc/default/irqbalance && . /etc/default/irqbalance\n\n\ttest \"$ENABLED\" != \"0\" || exit 0\n\n\tif test \"$ONESHOT\" != \"0\"; then\n\t\tDOPTIONS=\"--oneshot\"\n\tfi\n\n\texec /usr/sbin/irqbalance $DOPTIONS\n\n", | ||
3948 | 3571 | "script" : 1 | ||
3949 | 3572 | }, | ||
3950 | 3573 | { | ||
3951 | 3574 | "script" : 0, | ||
3952 | 3575 | "command" : null | ||
3953 | 3576 | }, | ||
3954 | 3577 | { | ||
3955 | 3578 | "script" : 0, | ||
3956 | 3579 | "command" : null | ||
3957 | 3580 | }, | ||
3958 | 3581 | { | ||
3959 | 3582 | "script" : 0, | ||
3960 | 3583 | "command" : null | ||
3961 | 3584 | }, | ||
3962 | 3585 | { | ||
3963 | 3586 | "command" : null, | ||
3964 | 3587 | "script" : 0 | ||
3965 | 3588 | }, | ||
3966 | 3589 | { | ||
3967 | 3590 | "command" : null, | ||
3968 | 3591 | "script" : 0 | ||
3969 | 3592 | }, | ||
3970 | 3593 | { | ||
3971 | 3594 | "command" : null, | ||
3972 | 3595 | "script" : 0 | ||
3973 | 3596 | } | ||
3974 | 3597 | ], | ||
3975 | 3598 | "respawn" : 0, | ||
3976 | 3599 | "description" : "CPU interrupts balancing daemon", | ||
3977 | 3600 | "chdir" : null, | ||
3978 | 3601 | "apparmor_switch" : null, | ||
3979 | 3602 | "usage" : null, | ||
3980 | 3603 | "author" : "Chuck Short <zulcss@ubuntu.com>", | ||
3981 | 3604 | "chroot" : null, | ||
3982 | 3605 | "setgid" : null, | ||
3983 | 3606 | "deleted" : 0, | ||
3984 | 3607 | "emits" : [], | ||
3985 | 3608 | "stop_on" : [ | ||
3986 | 3609 | { | ||
3987 | 3610 | "type" : "EVENT_MATCH", | ||
3988 | 3611 | "name" : "runlevel", | ||
3989 | 3612 | "value" : 0, | ||
3990 | 3613 | "env" : [ | ||
3991 | 3614 | "[!2345]" | ||
3992 | 3615 | ] | ||
3993 | 3616 | } | ||
3994 | 3617 | ] | ||
3995 | 3618 | }, | ||
3996 | 3619 | { | ||
3997 | 3620 | "expect" : "EXPECT_NONE", | ||
3998 | 3621 | "kill_timeout" : 5, | ||
3999 | 3622 | "respawn" : 0, | ||
4000 | 3623 | "description" : "Flush boot log to disk", | ||
4001 | 3624 | "chdir" : null, | ||
4002 | 3625 | "process" : [ | ||
4003 | 3626 | { | ||
4004 | 3627 | "command" : "/bin/plymouth update-root-fs --read-write", | ||
4005 | 3628 | "script" : 0 | ||
4006 | 3629 | }, | ||
4007 | 3630 | { | ||
4008 | 3631 | "script" : 0, | ||
4009 | 3632 | "command" : null | ||
4010 | 3633 | }, | ||
4011 | 3634 | { | ||
4012 | 3635 | "script" : 0, | ||
4013 | 3636 | "command" : null | ||
4014 | 3637 | }, | ||
4015 | 3638 | { | ||
4016 | 3639 | "command" : null, | ||
4017 | 3640 | "script" : 0 | ||
4018 | 3641 | }, | ||
4019 | 3642 | { | ||
4020 | 3643 | "command" : null, | ||
4021 | 3644 | "script" : 0 | ||
4022 | 3645 | }, | ||
4023 | 3646 | { | ||
4024 | 3647 | "command" : null, | ||
4025 | 3648 | "script" : 0 | ||
4026 | 3649 | }, | ||
4027 | 3650 | { | ||
4028 | 3651 | "script" : 0, | ||
4029 | 3652 | "command" : null | ||
4030 | 3653 | } | ||
4031 | 3654 | ], | ||
4032 | 3655 | "apparmor_switch" : null, | ||
4033 | 3656 | "usage" : null, | ||
4034 | 3657 | "author" : null, | ||
4035 | 3658 | "chroot" : null, | ||
4036 | 3659 | "deleted" : 0, | ||
4037 | 3660 | "setgid" : null, | ||
4038 | 3661 | "emits" : [], | ||
4039 | 3662 | "umask" : 18, | ||
4040 | 3663 | "env" : [], | ||
4041 | 3664 | "version" : null, | ||
4042 | 3665 | "path" : "/com/ubuntu/Upstart/jobs/plymouth_2dlog", | ||
4043 | 3666 | "limits" : [ | ||
4044 | 3667 | { | ||
4045 | 3668 | "rlim_cur" : 0, | ||
4046 | 3669 | "rlim_max" : 0 | ||
4047 | 3670 | }, | ||
4048 | 3671 | { | ||
4049 | 3672 | "rlim_max" : 0, | ||
4050 | 3673 | "rlim_cur" : 0 | ||
4051 | 3674 | }, | ||
4052 | 3675 | { | ||
4053 | 3676 | "rlim_max" : 0, | ||
4054 | 3677 | "rlim_cur" : 0 | ||
4055 | 3678 | }, | ||
4056 | 3679 | { | ||
4057 | 3680 | "rlim_max" : 0, | ||
4058 | 3681 | "rlim_cur" : 0 | ||
4059 | 3682 | }, | ||
4060 | 3683 | { | ||
4061 | 3684 | "rlim_max" : 0, | ||
4062 | 3685 | "rlim_cur" : 0 | ||
4063 | 3686 | }, | ||
4064 | 3687 | { | ||
4065 | 3688 | "rlim_cur" : 0, | ||
4066 | 3689 | "rlim_max" : 0 | ||
4067 | 3690 | }, | ||
4068 | 3691 | { | ||
4069 | 3692 | "rlim_cur" : 0, | ||
4070 | 3693 | "rlim_max" : 0 | ||
4071 | 3694 | }, | ||
4072 | 3695 | { | ||
4073 | 3696 | "rlim_cur" : 0, | ||
4074 | 3697 | "rlim_max" : 0 | ||
4075 | 3698 | }, | ||
4076 | 3699 | { | ||
4077 | 3700 | "rlim_cur" : 0, | ||
4078 | 3701 | "rlim_max" : 0 | ||
4079 | 3702 | }, | ||
4080 | 3703 | { | ||
4081 | 3704 | "rlim_cur" : 0, | ||
4082 | 3705 | "rlim_max" : 0 | ||
4083 | 3706 | }, | ||
4084 | 3707 | { | ||
4085 | 3708 | "rlim_max" : 0, | ||
4086 | 3709 | "rlim_cur" : 0 | ||
4087 | 3710 | }, | ||
4088 | 3711 | { | ||
4089 | 3712 | "rlim_cur" : 0, | ||
4090 | 3713 | "rlim_max" : 0 | ||
4091 | 3714 | }, | ||
4092 | 3715 | { | ||
4093 | 3716 | "rlim_cur" : 0, | ||
4094 | 3717 | "rlim_max" : 0 | ||
4095 | 3718 | }, | ||
4096 | 3719 | { | ||
4097 | 3720 | "rlim_cur" : 0, | ||
4098 | 3721 | "rlim_max" : 0 | ||
4099 | 3722 | }, | ||
4100 | 3723 | { | ||
4101 | 3724 | "rlim_cur" : 0, | ||
4102 | 3725 | "rlim_max" : 0 | ||
4103 | 3726 | }, | ||
4104 | 3727 | { | ||
4105 | 3728 | "rlim_max" : 0, | ||
4106 | 3729 | "rlim_cur" : 0 | ||
4107 | 3730 | } | ||
4108 | 3731 | ], | ||
4109 | 3732 | "instance" : "", | ||
4110 | 3733 | "start_on" : [ | ||
4111 | 3734 | { | ||
4112 | 3735 | "value" : 0, | ||
4113 | 3736 | "name" : "filesystem", | ||
4114 | 3737 | "type" : "EVENT_MATCH" | ||
4115 | 3738 | } | ||
4116 | 3739 | ], | ||
4117 | 3740 | "respawn_interval" : 5, | ||
4118 | 3741 | "export" : [], | ||
4119 | 3742 | "console" : "CONSOLE_LOG", | ||
4120 | 3743 | "normalexit" : [], | ||
4121 | 3744 | "setuid" : null, | ||
4122 | 3745 | "name" : "plymouth-log", | ||
4123 | 3746 | "debug" : 0, | ||
4124 | 3747 | "oom_score_adj" : 0, | ||
4125 | 3748 | "nice" : -21, | ||
4126 | 3749 | "session" : 0, | ||
4127 | 3750 | "reload_signal" : 1, | ||
4128 | 3751 | "kill_signal" : 15, | ||
4129 | 3752 | "task" : 1, | ||
4130 | 3753 | "jobs" : [], | ||
4131 | 3754 | "respawn_limit" : 10 | ||
4132 | 3755 | }, | ||
4133 | 3756 | { | ||
4134 | 3757 | "respawn_limit" : 10, | ||
4135 | 3758 | "jobs" : [ | ||
4136 | 3759 | { | ||
4137 | 3760 | "name" : "", | ||
4138 | 3761 | "log" : [ | ||
4139 | 3762 | { | ||
4140 | 3763 | "path" : "/var/log/upstart/systemd-logind.log", | ||
4141 | 3764 | "detached" : 0, | ||
4142 | 3765 | "remote_closed" : 0, | ||
4143 | 3766 | "uid" : 0, | ||
4144 | 3767 | "io_watch_fd" : 16, | ||
4145 | 3768 | "open_errno" : 9, | ||
4146 | 3769 | "fd" : 11 | ||
4147 | 3770 | }, | ||
4148 | 3771 | { | ||
4149 | 3772 | "path" : null | ||
4150 | 3773 | }, | ||
4151 | 3774 | { | ||
4152 | 3775 | "path" : null | ||
4153 | 3776 | }, | ||
4154 | 3777 | { | ||
4155 | 3778 | "path" : null | ||
4156 | 3779 | }, | ||
4157 | 3780 | { | ||
4158 | 3781 | "path" : null | ||
4159 | 3782 | }, | ||
4160 | 3783 | { | ||
4161 | 3784 | "path" : null | ||
4162 | 3785 | }, | ||
4163 | 3786 | { | ||
4164 | 3787 | "path" : null | ||
4165 | 3788 | } | ||
4166 | 3789 | ], | ||
4167 | 3790 | "failed_process" : "PROCESS_INVALID", | ||
4168 | 3791 | "stop_env" : [], | ||
4169 | 3792 | "exit_status" : 0, | ||
4170 | 3793 | "state" : "JOB_RUNNING", | ||
4171 | 3794 | "trace_state" : "TRACE_NONE", | ||
4172 | 3795 | "stop_on" : [ | ||
4173 | 3796 | { | ||
4174 | 3797 | "env" : [ | ||
4175 | 3798 | "dbus" | ||
4176 | 3799 | ], | ||
4177 | 3800 | "name" : "stopping", | ||
4178 | 3801 | "value" : 0, | ||
4179 | 3802 | "type" : "EVENT_MATCH" | ||
4180 | 3803 | } | ||
4181 | 3804 | ], | ||
4182 | 3805 | "trace_forks" : 0, | ||
4183 | 3806 | "goal" : "JOB_START", | ||
4184 | 3807 | "kill_process" : "PROCESS_INVALID", | ||
4185 | 3808 | "pid" : [ | ||
4186 | 3809 | 667, | ||
4187 | 3810 | 0, | ||
4188 | 3811 | 0, | ||
4189 | 3812 | 0, | ||
4190 | 3813 | 0, | ||
4191 | 3814 | 0, | ||
4192 | 3815 | 0 | ||
4193 | 3816 | ], | ||
4194 | 3817 | "start_env" : [], | ||
4195 | 3818 | "fds" : [], | ||
4196 | 3819 | "env" : [ | ||
4197 | 3820 | "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin", | ||
4198 | 3821 | "TERM=linux", | ||
4199 | 3822 | "SYSTEMD_LOG_TARGET=syslog", | ||
4200 | 3823 | "JOB=dbus", | ||
4201 | 3824 | "INSTANCE=", | ||
4202 | 3825 | "UPSTART_EVENTS=started" | ||
4203 | 3826 | ], | ||
4204 | 3827 | "failed" : 0, | ||
4205 | 3828 | "path" : "/com/ubuntu/Upstart/jobs/systemd_2dlogind/_", | ||
4206 | 3829 | "respawn_count" : 0, | ||
4207 | 3830 | "respawn_time" : 0 | ||
4208 | 3831 | } | ||
4209 | 3832 | ], | ||
4210 | 3833 | "task" : 0, | ||
4211 | 3834 | "kill_signal" : 15, | ||
4212 | 3835 | "session" : 0, | ||
4213 | 3836 | "reload_signal" : 1, | ||
4214 | 3837 | "oom_score_adj" : 0, | ||
4215 | 3838 | "nice" : -21, | ||
4216 | 3839 | "debug" : 0, | ||
4217 | 3840 | "name" : "systemd-logind", | ||
4218 | 3841 | "setuid" : null, | ||
4219 | 3842 | "normalexit" : [], | ||
4220 | 3843 | "console" : "CONSOLE_LOG", | ||
4221 | 3844 | "export" : [], | ||
4222 | 3845 | "respawn_interval" : 5, | ||
4223 | 3846 | "instance" : "", | ||
4224 | 3847 | "limits" : [ | ||
4225 | 3848 | { | ||
4226 | 3849 | "rlim_max" : 0, | ||
4227 | 3850 | "rlim_cur" : 0 | ||
4228 | 3851 | }, | ||
4229 | 3852 | { | ||
4230 | 3853 | "rlim_cur" : 0, | ||
4231 | 3854 | "rlim_max" : 0 | ||
4232 | 3855 | }, | ||
4233 | 3856 | { | ||
4234 | 3857 | "rlim_cur" : 0, | ||
4235 | 3858 | "rlim_max" : 0 | ||
4236 | 3859 | }, | ||
4237 | 3860 | { | ||
4238 | 3861 | "rlim_cur" : 0, | ||
4239 | 3862 | "rlim_max" : 0 | ||
4240 | 3863 | }, | ||
4241 | 3864 | { | ||
4242 | 3865 | "rlim_max" : 0, | ||
4243 | 3866 | "rlim_cur" : 0 | ||
4244 | 3867 | }, | ||
4245 | 3868 | { | ||
4246 | 3869 | "rlim_max" : 0, | ||
4247 | 3870 | "rlim_cur" : 0 | ||
4248 | 3871 | }, | ||
4249 | 3872 | { | ||
4250 | 3873 | "rlim_max" : 0, | ||
4251 | 3874 | "rlim_cur" : 0 | ||
4252 | 3875 | }, | ||
4253 | 3876 | { | ||
4254 | 3877 | "rlim_cur" : 16384, | ||
4255 | 3878 | "rlim_max" : 16384 | ||
4256 | 3879 | }, | ||
4257 | 3880 | { | ||
4258 | 3881 | "rlim_max" : 0, | ||
4259 | 3882 | "rlim_cur" : 0 | ||
4260 | 3883 | }, | ||
4261 | 3884 | { | ||
4262 | 3885 | "rlim_cur" : 0, | ||
4263 | 3886 | "rlim_max" : 0 | ||
4264 | 3887 | }, | ||
4265 | 3888 | { | ||
4266 | 3889 | "rlim_cur" : 0, | ||
4267 | 3890 | "rlim_max" : 0 | ||
4268 | 3891 | }, | ||
4269 | 3892 | { | ||
4270 | 3893 | "rlim_cur" : 0, | ||
4271 | 3894 | "rlim_max" : 0 | ||
4272 | 3895 | }, | ||
4273 | 3896 | { | ||
4274 | 3897 | "rlim_cur" : 0, | ||
4275 | 3898 | "rlim_max" : 0 | ||
4276 | 3899 | }, | ||
4277 | 3900 | { | ||
4278 | 3901 | "rlim_max" : 0, | ||
4279 | 3902 | "rlim_cur" : 0 | ||
4280 | 3903 | }, | ||
4281 | 3904 | { | ||
4282 | 3905 | "rlim_cur" : 0, | ||
4283 | 3906 | "rlim_max" : 0 | ||
4284 | 3907 | }, | ||
4285 | 3908 | { | ||
4286 | 3909 | "rlim_cur" : 0, | ||
4287 | 3910 | "rlim_max" : 0 | ||
4288 | 3911 | } | ||
4289 | 3912 | ], | ||
4290 | 3913 | "start_on" : [ | ||
4291 | 3914 | { | ||
4292 | 3915 | "env" : [ | ||
4293 | 3916 | "dbus" | ||
4294 | 3917 | ], | ||
4295 | 3918 | "value" : 0, | ||
4296 | 3919 | "name" : "started", | ||
4297 | 3920 | "type" : "EVENT_MATCH" | ||
4298 | 3921 | } | ||
4299 | 3922 | ], | ||
4300 | 3923 | "path" : "/com/ubuntu/Upstart/jobs/systemd_2dlogind", | ||
4301 | 3924 | "version" : null, | ||
4302 | 3925 | "env" : [ | ||
4303 | 3926 | "SYSTEMD_LOG_TARGET=syslog" | ||
4304 | 3927 | ], | ||
4305 | 3928 | "umask" : 18, | ||
4306 | 3929 | "stop_on" : [ | ||
4307 | 3930 | { | ||
4308 | 3931 | "env" : [ | ||
4309 | 3932 | "dbus" | ||
4310 | 3933 | ], | ||
4311 | 3934 | "name" : "stopping", | ||
4312 | 3935 | "value" : 0, | ||
4313 | 3936 | "type" : "EVENT_MATCH" | ||
4314 | 3937 | } | ||
4315 | 3938 | ], | ||
4316 | 3939 | "emits" : [], | ||
4317 | 3940 | "setgid" : null, | ||
4318 | 3941 | "deleted" : 0, | ||
4319 | 3942 | "usage" : null, | ||
4320 | 3943 | "author" : null, | ||
4321 | 3944 | "chroot" : null, | ||
4322 | 3945 | "apparmor_switch" : null, | ||
4323 | 3946 | "process" : [ | ||
4324 | 3947 | { | ||
4325 | 3948 | "command" : "/lib/systemd/systemd-logind", | ||
4326 | 3949 | "script" : 0 | ||
4327 | 3950 | }, | ||
4328 | 3951 | { | ||
4329 | 3952 | "command" : " # only start if PAM module is actually available, not if libpam-systemd is\n # removed but not purged\n [ -e /lib/*/security/pam_systemd.so ] || { stop; exit 0; }\n\n # this is being done by systemd or mountall usually, but not during\n # upgrades from earlier distro releases\n if ! mountpoint -q /sys/fs/cgroup; then\n mount -t tmpfs -o uid=0,gid=0,mode=0755,size=1024 none /sys/fs/cgroup\n fi\n mkdir -p /run/systemd\n if ! mountpoint -q /sys/fs/cgroup/systemd; then\n mkdir -p /sys/fs/cgroup/systemd\n mount -t cgroup -o nosuid,noexec,nodev,none,name=systemd systemd /sys/fs/cgroup/systemd\n fi\n", | ||
4330 | 3953 | "script" : 1 | ||
4331 | 3954 | }, | ||
4332 | 3955 | { | ||
4333 | 3956 | "command" : null, | ||
4334 | 3957 | "script" : 0 | ||
4335 | 3958 | }, | ||
4336 | 3959 | { | ||
4337 | 3960 | "script" : 0, | ||
4338 | 3961 | "command" : null | ||
4339 | 3962 | }, | ||
4340 | 3963 | { | ||
4341 | 3964 | "script" : 0, | ||
4342 | 3965 | "command" : null | ||
4343 | 3966 | }, | ||
4344 | 3967 | { | ||
4345 | 3968 | "command" : null, | ||
4346 | 3969 | "script" : 0 | ||
4347 | 3970 | }, | ||
4348 | 3971 | { | ||
4349 | 3972 | "script" : 0, | ||
4350 | 3973 | "command" : null | ||
4351 | 3974 | } | ||
4352 | 3975 | ], | ||
4353 | 3976 | "description" : "SystemD login management service", | ||
4354 | 3977 | "chdir" : null, | ||
4355 | 3978 | "respawn" : 1, | ||
4356 | 3979 | "kill_timeout" : 5, | ||
4357 | 3980 | "expect" : "EXPECT_NONE" | ||
4358 | 3981 | }, | ||
4359 | 3982 | { | ||
4360 | 3983 | "apparmor_switch" : null, | ||
4361 | 3984 | "kill_timeout" : 5, | ||
4362 | 3985 | "expect" : "EXPECT_NONE", | ||
4363 | 3986 | "process" : [ | ||
4364 | 3987 | { | ||
4365 | 3988 | "script" : 0, | ||
4366 | 3989 | "command" : "/sbin/getty -8 38400 tty5" | ||
4367 | 3990 | }, | ||
4368 | 3991 | { | ||
4369 | 3992 | "script" : 0, | ||
4370 | 3993 | "command" : null | ||
4371 | 3994 | }, | ||
4372 | 3995 | { | ||
4373 | 3996 | "command" : null, | ||
4374 | 3997 | "script" : 0 | ||
4375 | 3998 | }, | ||
4376 | 3999 | { | ||
4377 | 4000 | "command" : null, | ||
4378 | 4001 | "script" : 0 | ||
4379 | 4002 | }, | ||
4380 | 4003 | { | ||
4381 | 4004 | "script" : 0, | ||
4382 | 4005 | "command" : null | ||
4383 | 4006 | }, | ||
4384 | 4007 | { | ||
4385 | 4008 | "script" : 0, | ||
4386 | 4009 | "command" : null | ||
4387 | 4010 | }, | ||
4388 | 4011 | { | ||
4389 | 4012 | "command" : null, | ||
4390 | 4013 | "script" : 0 | ||
4391 | 4014 | } | ||
4392 | 4015 | ], | ||
4393 | 4016 | "chdir" : null, | ||
4394 | 4017 | "respawn" : 1, | ||
4395 | 4018 | "description" : null, | ||
4396 | 4019 | "emits" : [], | ||
4397 | 4020 | "stop_on" : [ | ||
4398 | 4021 | { | ||
4399 | 4022 | "name" : "runlevel", | ||
4400 | 4023 | "value" : 0, | ||
4401 | 4024 | "type" : "EVENT_MATCH", | ||
4402 | 4025 | "env" : [ | ||
4403 | 4026 | "[!23]" | ||
4404 | 4027 | ] | ||
4405 | 4028 | } | ||
4406 | 4029 | ], | ||
4407 | 4030 | "usage" : null, | ||
4408 | 4031 | "author" : null, | ||
4409 | 4032 | "chroot" : null, | ||
4410 | 4033 | "deleted" : 0, | ||
4411 | 4034 | "setgid" : null, | ||
4412 | 4035 | "respawn_interval" : 5, | ||
4413 | 4036 | "instance" : "", | ||
4414 | 4037 | "limits" : [ | ||
4415 | 4038 | { | ||
4416 | 4039 | "rlim_cur" : 0, | ||
4417 | 4040 | "rlim_max" : 0 | ||
4418 | 4041 | }, | ||
4419 | 4042 | { | ||
4420 | 4043 | "rlim_cur" : 0, | ||
4421 | 4044 | "rlim_max" : 0 | ||
4422 | 4045 | }, | ||
4423 | 4046 | { | ||
4424 | 4047 | "rlim_cur" : 0, | ||
4425 | 4048 | "rlim_max" : 0 | ||
4426 | 4049 | }, | ||
4427 | 4050 | { | ||
4428 | 4051 | "rlim_max" : 0, | ||
4429 | 4052 | "rlim_cur" : 0 | ||
4430 | 4053 | }, | ||
4431 | 4054 | { | ||
4432 | 4055 | "rlim_max" : 0, | ||
4433 | 4056 | "rlim_cur" : 0 | ||
4434 | 4057 | }, | ||
4435 | 4058 | { | ||
4436 | 4059 | "rlim_max" : 0, | ||
4437 | 4060 | "rlim_cur" : 0 | ||
4438 | 4061 | }, | ||
4439 | 4062 | { | ||
4440 | 4063 | "rlim_max" : 0, | ||
4441 | 4064 | "rlim_cur" : 0 | ||
4442 | 4065 | }, | ||
4443 | 4066 | { | ||
4444 | 4067 | "rlim_max" : 0, | ||
4445 | 4068 | "rlim_cur" : 0 | ||
4446 | 4069 | }, | ||
4447 | 4070 | { | ||
4448 | 4071 | "rlim_max" : 0, | ||
4449 | 4072 | "rlim_cur" : 0 | ||
4450 | 4073 | }, | ||
4451 | 4074 | { | ||
4452 | 4075 | "rlim_max" : 0, | ||
4453 | 4076 | "rlim_cur" : 0 | ||
4454 | 4077 | }, | ||
4455 | 4078 | { | ||
4456 | 4079 | "rlim_cur" : 0, | ||
4457 | 4080 | "rlim_max" : 0 | ||
4458 | 4081 | }, | ||
4459 | 4082 | { | ||
4460 | 4083 | "rlim_max" : 0, | ||
4461 | 4084 | "rlim_cur" : 0 | ||
4462 | 4085 | }, | ||
4463 | 4086 | { | ||
4464 | 4087 | "rlim_cur" : 0, | ||
4465 | 4088 | "rlim_max" : 0 | ||
4466 | 4089 | }, | ||
4467 | 4090 | { | ||
4468 | 4091 | "rlim_cur" : 0, | ||
4469 | 4092 | "rlim_max" : 0 | ||
4470 | 4093 | }, | ||
4471 | 4094 | { | ||
4472 | 4095 | "rlim_cur" : 0, | ||
4473 | 4096 | "rlim_max" : 0 | ||
4474 | 4097 | }, | ||
4475 | 4098 | { | ||
4476 | 4099 | "rlim_cur" : 0, | ||
4477 | 4100 | "rlim_max" : 0 | ||
4478 | 4101 | } | ||
4479 | 4102 | ], | ||
4480 | 4103 | "start_on" : [ | ||
4481 | 4104 | { | ||
4482 | 4105 | "type" : "EVENT_MATCH", | ||
4483 | 4106 | "value" : 0, | ||
4484 | 4107 | "name" : "runlevel", | ||
4485 | 4108 | "env" : [ | ||
4486 | 4109 | "[23]" | ||
4487 | 4110 | ] | ||
4488 | 4111 | }, | ||
4489 | 4112 | { | ||
4490 | 4113 | "name" : "not-container", | ||
4491 | 4114 | "value" : 0, | ||
4492 | 4115 | "type" : "EVENT_MATCH" | ||
4493 | 4116 | }, | ||
4494 | 4117 | { | ||
4495 | 4118 | "type" : "EVENT_AND", | ||
4496 | 4119 | "value" : 0 | ||
4497 | 4120 | } | ||
4498 | 4121 | ], | ||
4499 | 4122 | "path" : "/com/ubuntu/Upstart/jobs/tty5", | ||
4500 | 4123 | "console" : "CONSOLE_LOG", | ||
4501 | 4124 | "export" : [], | ||
4502 | 4125 | "version" : null, | ||
4503 | 4126 | "env" : [], | ||
4504 | 4127 | "umask" : 18, | ||
4505 | 4128 | "task" : 0, | ||
4506 | 4129 | "kill_signal" : 15, | ||
4507 | 4130 | "session" : 0, | ||
4508 | 4131 | "reload_signal" : 1, | ||
4509 | 4132 | "respawn_limit" : 10, | ||
4510 | 4133 | "jobs" : [ | ||
4511 | 4134 | { | ||
4512 | 4135 | "trace_forks" : 0, | ||
4513 | 4136 | "stop_on" : [ | ||
4514 | 4137 | { | ||
4515 | 4138 | "value" : 0, | ||
4516 | 4139 | "name" : "runlevel", | ||
4517 | 4140 | "type" : "EVENT_MATCH", | ||
4518 | 4141 | "env" : [ | ||
4519 | 4142 | "[!23]" | ||
4520 | 4143 | ] | ||
4521 | 4144 | } | ||
4522 | 4145 | ], | ||
4523 | 4146 | "trace_state" : "TRACE_NONE", | ||
4524 | 4147 | "state" : "JOB_RUNNING", | ||
4525 | 4148 | "kill_process" : "PROCESS_INVALID", | ||
4526 | 4149 | "pid" : [ | ||
4527 | 4150 | 1010, | ||
4528 | 4151 | 0, | ||
4529 | 4152 | 0, | ||
4530 | 4153 | 0, | ||
4531 | 4154 | 0, | ||
4532 | 4155 | 0, | ||
4533 | 4156 | 0 | ||
4534 | 4157 | ], | ||
4535 | 4158 | "start_env" : [], | ||
4536 | 4159 | "goal" : "JOB_START", | ||
4537 | 4160 | "failed_process" : "PROCESS_INVALID", | ||
4538 | 4161 | "stop_env" : [], | ||
4539 | 4162 | "log" : [ | ||
4540 | 4163 | { | ||
4541 | 4164 | "path" : null | ||
4542 | 4165 | }, | ||
4543 | 4166 | { | ||
4544 | 4167 | "path" : null | ||
4545 | 4168 | }, | ||
4546 | 4169 | { | ||
4547 | 4170 | "path" : null | ||
4548 | 4171 | }, | ||
4549 | 4172 | { | ||
4550 | 4173 | "path" : null | ||
4551 | 4174 | }, | ||
4552 | 4175 | { | ||
4553 | 4176 | "path" : null | ||
4554 | 4177 | }, | ||
4555 | 4178 | { | ||
4556 | 4179 | "path" : null | ||
4557 | 4180 | }, | ||
4558 | 4181 | { | ||
4559 | 4182 | "path" : null | ||
4560 | 4183 | } | ||
4561 | 4184 | ], | ||
4562 | 4185 | "name" : "", | ||
4563 | 4186 | "exit_status" : 0, | ||
4564 | 4187 | "respawn_time" : 0, | ||
4565 | 4188 | "respawn_count" : 0, | ||
4566 | 4189 | "path" : "/com/ubuntu/Upstart/jobs/tty5/_", | ||
4567 | 4190 | "failed" : 0, | ||
4568 | 4191 | "fds" : [], | ||
4569 | 4192 | "env" : [ | ||
4570 | 4193 | "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin", | ||
4571 | 4194 | "TERM=linux", | ||
4572 | 4195 | "RUNLEVEL=2", | ||
4573 | 4196 | "PREVLEVEL=N", | ||
4574 | 4197 | "UPSTART_EVENTS=runlevel not-container" | ||
4575 | 4198 | ] | ||
4576 | 4199 | } | ||
4577 | 4200 | ], | ||
4578 | 4201 | "normalexit" : [], | ||
4579 | 4202 | "setuid" : null, | ||
4580 | 4203 | "nice" : -21, | ||
4581 | 4204 | "oom_score_adj" : 0, | ||
4582 | 4205 | "debug" : 0, | ||
4583 | 4206 | "name" : "tty5" | ||
4584 | 4207 | }, | ||
4585 | 4208 | { | ||
4586 | 4209 | "chroot" : null, | ||
4587 | 4210 | "usage" : null, | ||
4588 | 4211 | "author" : "Clint Byrum <clint@ubuntu.com>", | ||
4589 | 4212 | "setgid" : null, | ||
4590 | 4213 | "deleted" : 0, | ||
4591 | 4214 | "emits" : [ | ||
4592 | 4215 | "failsafe-boot" | ||
4593 | 4216 | ], | ||
4594 | 4217 | "stop_on" : [ | ||
4595 | 4218 | { | ||
4596 | 4219 | "type" : "EVENT_MATCH", | ||
4597 | 4220 | "name" : "static-network-up", | ||
4598 | 4221 | "value" : 0 | ||
4599 | 4222 | }, | ||
4600 | 4223 | { | ||
4601 | 4224 | "type" : "EVENT_MATCH", | ||
4602 | 4225 | "name" : "starting", | ||
4603 | 4226 | "value" : 0, | ||
4604 | 4227 | "env" : [ | ||
4605 | 4228 | "rc-sysinit" | ||
4606 | 4229 | ] | ||
4607 | 4230 | }, | ||
4608 | 4231 | { | ||
4609 | 4232 | "type" : "EVENT_OR", | ||
4610 | 4233 | "value" : 0 | ||
4611 | 4234 | } | ||
4612 | 4235 | ], | ||
4613 | 4236 | "kill_timeout" : 5, | ||
4614 | 4237 | "expect" : "EXPECT_NONE", | ||
4615 | 4238 | "process" : [ | ||
4616 | 4239 | { | ||
4617 | 4240 | "script" : 1, | ||
4618 | 4241 | "command" : "\t# Determine if plymouth is available\n\tif [ -x /bin/plymouth ] && /bin/plymouth --ping ; then\n\t\tPLYMOUTH=/bin/plymouth\n\telse\n\t\tPLYMOUTH=\":\"\n\tfi\n\n # The point here is to wait for 2 minutes before forcibly booting \n # the system. Anything that is in an \"or\" condition with 'started \n # failsafe' in rc-sysinit deserves consideration for mentioning in\n # these messages. currently only static-network-up counts for that.\n\n\tsleep 20\n\n # Plymouth errors should not stop the script because we *must* reach\n # the end of this script to avoid letting the system spin forever\n # waiting on it to start.\n\t$PLYMOUTH message --text=\"Waiting for network configuration...\" || :\n\tsleep 40\n\n\t$PLYMOUTH message --text=\"Waiting up to 60 more seconds for network configuration...\" || :\n\tsleep 59\n\t$PLYMOUTH message --text=\"Booting system without full network configuration...\" || :\n\n # give user 1 second to see this message since plymouth will go\n # away as soon as failsafe starts.\n\tsleep 1\n exec initctl emit --no-wait failsafe-boot\n" | ||
4619 | 4242 | }, | ||
4620 | 4243 | { | ||
4621 | 4244 | "command" : null, | ||
4622 | 4245 | "script" : 0 | ||
4623 | 4246 | }, | ||
4624 | 4247 | { | ||
4625 | 4248 | "command" : "logger -t 'failsafe' -p daemon.warning \"Failsafe of 120 seconds reached.\"", | ||
4626 | 4249 | "script" : 0 | ||
4627 | 4250 | }, | ||
4628 | 4251 | { | ||
4629 | 4252 | "command" : null, | ||
4630 | 4253 | "script" : 0 | ||
4631 | 4254 | }, | ||
4632 | 4255 | { | ||
4633 | 4256 | "script" : 0, | ||
4634 | 4257 | "command" : null | ||
4635 | 4258 | }, | ||
4636 | 4259 | { | ||
4637 | 4260 | "script" : 0, | ||
4638 | 4261 | "command" : null | ||
4639 | 4262 | }, | ||
4640 | 4263 | { | ||
4641 | 4264 | "script" : 0, | ||
4642 | 4265 | "command" : null | ||
4643 | 4266 | } | ||
4644 | 4267 | ], | ||
4645 | 4268 | "respawn" : 0, | ||
4646 | 4269 | "description" : "Failsafe Boot Delay", | ||
4647 | 4270 | "chdir" : null, | ||
4648 | 4271 | "apparmor_switch" : null, | ||
4649 | 4272 | "setuid" : null, | ||
4650 | 4273 | "normalexit" : [], | ||
4651 | 4274 | "nice" : -21, | ||
4652 | 4275 | "oom_score_adj" : 0, | ||
4653 | 4276 | "name" : "failsafe", | ||
4654 | 4277 | "debug" : 0, | ||
4655 | 4278 | "kill_signal" : 15, | ||
4656 | 4279 | "task" : 0, | ||
4657 | 4280 | "reload_signal" : 1, | ||
4658 | 4281 | "session" : 0, | ||
4659 | 4282 | "jobs" : [ | ||
4660 | 4283 | { | ||
4661 | 4284 | "failed" : 0, | ||
4662 | 4285 | "path" : "/com/ubuntu/Upstart/jobs/failsafe/_", | ||
4663 | 4286 | "respawn_count" : 0, | ||
4664 | 4287 | "respawn_time" : 0, | ||
4665 | 4288 | "env" : [ | ||
4666 | 4289 | "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin", | ||
4667 | 4290 | "TERM=linux", | ||
4668 | 4291 | "IFACE=lo", | ||
4669 | 4292 | "LOGICAL=lo", | ||
4670 | 4293 | "ADDRFAM=inet", | ||
4671 | 4294 | "METHOD=loopback", | ||
4672 | 4295 | "UPSTART_EVENTS=filesystem net-device-up" | ||
4673 | 4296 | ], | ||
4674 | 4297 | "fds" : [], | ||
4675 | 4298 | "goal" : "JOB_START", | ||
4676 | 4299 | "pid" : [ | ||
4677 | 4300 | 1213, | ||
4678 | 4301 | 0, | ||
4679 | 4302 | 0, | ||
4680 | 4303 | 0, | ||
4681 | 4304 | 0, | ||
4682 | 4305 | 0, | ||
4683 | 4306 | 0 | ||
4684 | 4307 | ], | ||
4685 | 4308 | "kill_process" : "PROCESS_INVALID", | ||
4686 | 4309 | "start_env" : [], | ||
4687 | 4310 | "state" : "JOB_RUNNING", | ||
4688 | 4311 | "trace_state" : "TRACE_NONE", | ||
4689 | 4312 | "stop_on" : [ | ||
4690 | 4313 | { | ||
4691 | 4314 | "value" : 0, | ||
4692 | 4315 | "name" : "static-network-up", | ||
4693 | 4316 | "type" : "EVENT_MATCH" | ||
4694 | 4317 | }, | ||
4695 | 4318 | { | ||
4696 | 4319 | "env" : [ | ||
4697 | 4320 | "rc-sysinit" | ||
4698 | 4321 | ], | ||
4699 | 4322 | "type" : "EVENT_MATCH", | ||
4700 | 4323 | "value" : 0, | ||
4701 | 4324 | "name" : "starting" | ||
4702 | 4325 | }, | ||
4703 | 4326 | { | ||
4704 | 4327 | "type" : "EVENT_OR", | ||
4705 | 4328 | "value" : 0 | ||
4706 | 4329 | } | ||
4707 | 4330 | ], | ||
4708 | 4331 | "trace_forks" : 0, | ||
4709 | 4332 | "exit_status" : 0, | ||
4710 | 4333 | "name" : "", | ||
4711 | 4334 | "log" : [ | ||
4712 | 4335 | { | ||
4713 | 4336 | "path" : null | ||
4714 | 4337 | }, | ||
4715 | 4338 | { | ||
4716 | 4339 | "path" : null | ||
4717 | 4340 | }, | ||
4718 | 4341 | { | ||
4719 | 4342 | "path" : null | ||
4720 | 4343 | }, | ||
4721 | 4344 | { | ||
4722 | 4345 | "path" : null | ||
4723 | 4346 | }, | ||
4724 | 4347 | { | ||
4725 | 4348 | "path" : null | ||
4726 | 4349 | }, | ||
4727 | 4350 | { | ||
4728 | 4351 | "path" : null | ||
4729 | 4352 | }, | ||
4730 | 4353 | { | ||
4731 | 4354 | "path" : null | ||
4732 | 4355 | } | ||
4733 | 4356 | ], | ||
4734 | 4357 | "failed_process" : "PROCESS_INVALID", | ||
4735 | 4358 | "stop_env" : [] | ||
4736 | 4359 | } | ||
4737 | 4360 | ], | ||
4738 | 4361 | "respawn_limit" : 10, | ||
4739 | 4362 | "umask" : 18, | ||
4740 | 4363 | "env" : [], | ||
4741 | 4364 | "version" : null, | ||
4742 | 4365 | "respawn_interval" : 5, | ||
4743 | 4366 | "path" : "/com/ubuntu/Upstart/jobs/failsafe", | ||
4744 | 4367 | "instance" : "", | ||
4745 | 4368 | "limits" : [ | ||
4746 | 4369 | { | ||
4747 | 4370 | "rlim_max" : 0, | ||
4748 | 4371 | "rlim_cur" : 0 | ||
4749 | 4372 | }, | ||
4750 | 4373 | { | ||
4751 | 4374 | "rlim_cur" : 0, | ||
4752 | 4375 | "rlim_max" : 0 | ||
4753 | 4376 | }, | ||
4754 | 4377 | { | ||
4755 | 4378 | "rlim_max" : 0, | ||
4756 | 4379 | "rlim_cur" : 0 | ||
4757 | 4380 | }, | ||
4758 | 4381 | { | ||
4759 | 4382 | "rlim_cur" : 0, | ||
4760 | 4383 | "rlim_max" : 0 | ||
4761 | 4384 | }, | ||
4762 | 4385 | { | ||
4763 | 4386 | "rlim_max" : 0, | ||
4764 | 4387 | "rlim_cur" : 0 | ||
4765 | 4388 | }, | ||
4766 | 4389 | { | ||
4767 | 4390 | "rlim_cur" : 0, | ||
4768 | 4391 | "rlim_max" : 0 | ||
4769 | 4392 | }, | ||
4770 | 4393 | { | ||
4771 | 4394 | "rlim_max" : 0, | ||
4772 | 4395 | "rlim_cur" : 0 | ||
4773 | 4396 | }, | ||
4774 | 4397 | { | ||
4775 | 4398 | "rlim_max" : 0, | ||
4776 | 4399 | "rlim_cur" : 0 | ||
4777 | 4400 | }, | ||
4778 | 4401 | { | ||
4779 | 4402 | "rlim_cur" : 0, | ||
4780 | 4403 | "rlim_max" : 0 | ||
4781 | 4404 | }, | ||
4782 | 4405 | { | ||
4783 | 4406 | "rlim_max" : 0, | ||
4784 | 4407 | "rlim_cur" : 0 | ||
4785 | 4408 | }, | ||
4786 | 4409 | { | ||
4787 | 4410 | "rlim_max" : 0, | ||
4788 | 4411 | "rlim_cur" : 0 | ||
4789 | 4412 | }, | ||
4790 | 4413 | { | ||
4791 | 4414 | "rlim_max" : 0, | ||
4792 | 4415 | "rlim_cur" : 0 | ||
4793 | 4416 | }, | ||
4794 | 4417 | { | ||
4795 | 4418 | "rlim_max" : 0, | ||
4796 | 4419 | "rlim_cur" : 0 | ||
4797 | 4420 | }, | ||
4798 | 4421 | { | ||
4799 | 4422 | "rlim_max" : 0, | ||
4800 | 4423 | "rlim_cur" : 0 | ||
4801 | 4424 | }, | ||
4802 | 4425 | { | ||
4803 | 4426 | "rlim_cur" : 0, | ||
4804 | 4427 | "rlim_max" : 0 | ||
4805 | 4428 | }, | ||
4806 | 4429 | { | ||
4807 | 4430 | "rlim_cur" : 0, | ||
4808 | 4431 | "rlim_max" : 0 | ||
4809 | 4432 | } | ||
4810 | 4433 | ], | ||
4811 | 4434 | "start_on" : [ | ||
4812 | 4435 | { | ||
4813 | 4436 | "name" : "filesystem", | ||
4814 | 4437 | "value" : 0, | ||
4815 | 4438 | "type" : "EVENT_MATCH" | ||
4816 | 4439 | }, | ||
4817 | 4440 | { | ||
4818 | 4441 | "name" : "net-device-up", | ||
4819 | 4442 | "value" : 0, | ||
4820 | 4443 | "type" : "EVENT_MATCH", | ||
4821 | 4444 | "env" : [ | ||
4822 | 4445 | "IFACE=lo" | ||
4823 | 4446 | ] | ||
4824 | 4447 | }, | ||
4825 | 4448 | { | ||
4826 | 4449 | "value" : 0, | ||
4827 | 4450 | "type" : "EVENT_AND" | ||
4828 | 4451 | } | ||
4829 | 4452 | ], | ||
4830 | 4453 | "console" : "CONSOLE_OUTPUT", | ||
4831 | 4454 | "export" : [] | ||
4832 | 4455 | }, | ||
4833 | 4456 | { | ||
4834 | 4457 | "respawn" : 0, | ||
4835 | 4458 | "chdir" : null, | ||
4836 | 4459 | "description" : null, | ||
4837 | 4460 | "process" : [ | ||
4838 | 4461 | { | ||
4839 | 4462 | "command" : "hybrid-detect", | ||
4840 | 4463 | "script" : 0 | ||
4841 | 4464 | }, | ||
4842 | 4465 | { | ||
4843 | 4466 | "command" : null, | ||
4844 | 4467 | "script" : 0 | ||
4845 | 4468 | }, | ||
4846 | 4469 | { | ||
4847 | 4470 | "command" : null, | ||
4848 | 4471 | "script" : 0 | ||
4849 | 4472 | }, | ||
4850 | 4473 | { | ||
4851 | 4474 | "script" : 0, | ||
4852 | 4475 | "command" : null | ||
4853 | 4476 | }, | ||
4854 | 4477 | { | ||
4855 | 4478 | "command" : null, | ||
4856 | 4479 | "script" : 0 | ||
4857 | 4480 | }, | ||
4858 | 4481 | { | ||
4859 | 4482 | "command" : null, | ||
4860 | 4483 | "script" : 0 | ||
4861 | 4484 | }, | ||
4862 | 4485 | { | ||
4863 | 4486 | "command" : null, | ||
4864 | 4487 | "script" : 0 | ||
4865 | 4488 | } | ||
4866 | 4489 | ], | ||
4867 | 4490 | "expect" : "EXPECT_NONE", | ||
4868 | 4491 | "kill_timeout" : 5, | ||
4869 | 4492 | "apparmor_switch" : null, | ||
4870 | 4493 | "setgid" : null, | ||
4871 | 4494 | "deleted" : 0, | ||
4872 | 4495 | "chroot" : null, | ||
4873 | 4496 | "usage" : null, | ||
4874 | 4497 | "author" : null, | ||
4875 | 4498 | "emits" : [], | ||
4876 | 4499 | "env" : [], | ||
4877 | 4500 | "umask" : 18, | ||
4878 | 4501 | "version" : null, | ||
4879 | 4502 | "export" : [], | ||
4880 | 4503 | "console" : "CONSOLE_LOG", | ||
4881 | 4504 | "path" : "/com/ubuntu/Upstart/jobs/hybrid_2dgfx", | ||
4882 | 4505 | "start_on" : [ | ||
4883 | 4506 | { | ||
4884 | 4507 | "type" : "EVENT_MATCH", | ||
4885 | 4508 | "name" : "starting", | ||
4886 | 4509 | "value" : 0, | ||
4887 | 4510 | "env" : [ | ||
4888 | 4511 | "lightdm" | ||
4889 | 4512 | ] | ||
4890 | 4513 | }, | ||
4891 | 4514 | { | ||
4892 | 4515 | "env" : [ | ||
4893 | 4516 | "kdm" | ||
4894 | 4517 | ], | ||
4895 | 4518 | "name" : "starting", | ||
4896 | 4519 | "value" : 0, | ||
4897 | 4520 | "type" : "EVENT_MATCH" | ||
4898 | 4521 | }, | ||
4899 | 4522 | { | ||
4900 | 4523 | "value" : 0, | ||
4901 | 4524 | "type" : "EVENT_OR" | ||
4902 | 4525 | }, | ||
4903 | 4526 | { | ||
4904 | 4527 | "env" : [ | ||
4905 | 4528 | "xdm" | ||
4906 | 4529 | ], | ||
4907 | 4530 | "type" : "EVENT_MATCH", | ||
4908 | 4531 | "name" : "starting", | ||
4909 | 4532 | "value" : 0 | ||
4910 | 4533 | }, | ||
4911 | 4534 | { | ||
4912 | 4535 | "type" : "EVENT_OR", | ||
4913 | 4536 | "value" : 0 | ||
4914 | 4537 | }, | ||
4915 | 4538 | { | ||
4916 | 4539 | "env" : [ | ||
4917 | 4540 | "lxdm" | ||
4918 | 4541 | ], | ||
4919 | 4542 | "name" : "starting", | ||
4920 | 4543 | "value" : 0, | ||
4921 | 4544 | "type" : "EVENT_MATCH" | ||
4922 | 4545 | }, | ||
4923 | 4546 | { | ||
4924 | 4547 | "type" : "EVENT_OR", | ||
4925 | 4548 | "value" : 0 | ||
4926 | 4549 | } | ||
4927 | 4550 | ], | ||
4928 | 4551 | "limits" : [ | ||
4929 | 4552 | { | ||
4930 | 4553 | "rlim_max" : 0, | ||
4931 | 4554 | "rlim_cur" : 0 | ||
4932 | 4555 | }, | ||
4933 | 4556 | { | ||
4934 | 4557 | "rlim_max" : 0, | ||
4935 | 4558 | "rlim_cur" : 0 | ||
4936 | 4559 | }, | ||
4937 | 4560 | { | ||
4938 | 4561 | "rlim_max" : 0, | ||
4939 | 4562 | "rlim_cur" : 0 | ||
4940 | 4563 | }, | ||
4941 | 4564 | { | ||
4942 | 4565 | "rlim_cur" : 0, | ||
4943 | 4566 | "rlim_max" : 0 | ||
4944 | 4567 | }, | ||
4945 | 4568 | { | ||
4946 | 4569 | "rlim_max" : 0, | ||
4947 | 4570 | "rlim_cur" : 0 | ||
4948 | 4571 | }, | ||
4949 | 4572 | { | ||
4950 | 4573 | "rlim_cur" : 0, | ||
4951 | 4574 | "rlim_max" : 0 | ||
4952 | 4575 | }, | ||
4953 | 4576 | { | ||
4954 | 4577 | "rlim_max" : 0, | ||
4955 | 4578 | "rlim_cur" : 0 | ||
4956 | 4579 | }, | ||
4957 | 4580 | { | ||
4958 | 4581 | "rlim_max" : 0, | ||
4959 | 4582 | "rlim_cur" : 0 | ||
4960 | 4583 | }, | ||
4961 | 4584 | { | ||
4962 | 4585 | "rlim_max" : 0, | ||
4963 | 4586 | "rlim_cur" : 0 | ||
4964 | 4587 | }, | ||
4965 | 4588 | { | ||
4966 | 4589 | "rlim_cur" : 0, | ||
4967 | 4590 | "rlim_max" : 0 | ||
4968 | 4591 | }, | ||
4969 | 4592 | { | ||
4970 | 4593 | "rlim_cur" : 0, | ||
4971 | 4594 | "rlim_max" : 0 | ||
4972 | 4595 | }, | ||
4973 | 4596 | { | ||
4974 | 4597 | "rlim_cur" : 0, | ||
4975 | 4598 | "rlim_max" : 0 | ||
4976 | 4599 | }, | ||
4977 | 4600 | { | ||
4978 | 4601 | "rlim_cur" : 0, | ||
4979 | 4602 | "rlim_max" : 0 | ||
4980 | 4603 | }, | ||
4981 | 4604 | { | ||
4982 | 4605 | "rlim_max" : 0, | ||
4983 | 4606 | "rlim_cur" : 0 | ||
4984 | 4607 | }, | ||
4985 | 4608 | { | ||
4986 | 4609 | "rlim_cur" : 0, | ||
4987 | 4610 | "rlim_max" : 0 | ||
4988 | 4611 | }, | ||
4989 | 4612 | { | ||
4990 | 4613 | "rlim_max" : 0, | ||
4991 | 4614 | "rlim_cur" : 0 | ||
4992 | 4615 | } | ||
4993 | 4616 | ], | ||
4994 | 4617 | "instance" : "", | ||
4995 | 4618 | "respawn_interval" : 5, | ||
4996 | 4619 | "name" : "hybrid-gfx", | ||
4997 | 4620 | "debug" : 0, | ||
4998 | 4621 | "nice" : -21, | ||
4999 | 4622 | "oom_score_adj" : 0, | ||
5000 | 4623 | "setuid" : null, |
@@ -275,7 +280,18 @@ json_type (json_processes, array))
goto error;
if (! state_check_
- for (i = 0; i < json_object_ array_length (json_processes); i++) { array_length (json_processes);
json_ object *json_process;
+ len = json_object_
+
+ if (len > PROCESS_LAST) {
+ /* Detected a downgrade on re-exec scenario (where we
+ * are attempting to restore state from a newer init
+ * which contains additional processes
+ */
+ nih_warn ("%s", _("Detected unsupported downgrade on re-exec"));
+ goto error;
+ }
+
+ for (i = 0; i < len; i++) {
The result of this is that, instead of deserializing those processes that are known, on any downgrade to a version that tracked fewer processes, all information will be discarded about all processes associated with jobs. This is effectively equivalent to a stateless reexec, and is not a very graceful handling of this case.
I don't feel very strongly in general about supporting downgrades; but in a case such as this where you need to explicitly handle the difference in the number of related processes, it seems to me that a graceful handling is as easy to accomplish as the ungraceful alternative.