|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Modified default resource file to test system starter |
|
15 // WARNING: Any changes made to this resource file must be |
|
16 // checked against the system starter test cases. |
|
17 // Specifically: |
|
18 // - AppFailRetry0Ignore |
|
19 // |
|
20 // |
|
21 |
|
22 #include "startup.rh" |
|
23 |
|
24 |
|
25 // |
|
26 // ENTRY POINT |
|
27 // |
|
28 |
|
29 // THIS MUST BE THE FIRST RESOURCE. The system relies on |
|
30 // this having a resource ID of 1 |
|
31 |
|
32 RESOURCE STARTUP_ENTRY_POINT r_entry_point |
|
33 { |
|
34 entry_point = r_startup_state_critical_static; |
|
35 } |
|
36 // |
|
37 |
|
38 |
|
39 |
|
40 // |
|
41 // CRITICAL-STATIC startup state |
|
42 // |
|
43 RESOURCE STATE_INFO r_startup_state_critical_static |
|
44 { |
|
45 id = EStartupStateCriticalStatic; |
|
46 name = "Critical Static"; |
|
47 command_list = r_critical_static_commands; |
|
48 next = r_startup_state_critical_dynamic; |
|
49 } |
|
50 |
|
51 RESOURCE COMMAND_ARRAY r_critical_static_commands |
|
52 { |
|
53 commands = |
|
54 { |
|
55 START_PROCESS_INFO |
|
56 { |
|
57 path = "Z:\\sys\\bin\\SysAgt2Svr.exe"; |
|
58 start_method = EWaitForStart; |
|
59 no_of_retries_on_failure = 2; |
|
60 }, |
|
61 START_PROCESS_INFO |
|
62 { |
|
63 path = "Z:\\sys\\bin\\fbserv.exe"; |
|
64 start_method = EWaitForStart; |
|
65 no_of_retries_on_failure = 1; |
|
66 }, |
|
67 START_PROCESS_INFO |
|
68 { |
|
69 path = "Z:\\sys\\bin\\wserv.exe"; |
|
70 args = "-NoShell"; |
|
71 start_method = EWaitForStart; |
|
72 }, |
|
73 SPLASH_SCREEN |
|
74 { |
|
75 path = "Z:\\sys\\bin\\splash.exe"; |
|
76 }, |
|
77 START_PROCESS_INFO |
|
78 { |
|
79 path = "Z:\\sys\\bin\\eiksrvs.exe"; |
|
80 args = "-OnlyStartDependentServers"; |
|
81 start_method = EWaitForStart; |
|
82 }, |
|
83 START_PROCESS_INFO |
|
84 { |
|
85 path = "Z:\\sys\\bin\\sisregistryserver.exe"; |
|
86 start_method = EWaitForStart; |
|
87 }, |
|
88 START_PROCESS_INFO |
|
89 { |
|
90 path = "Z:\\sys\\bin\\tzserver.exe"; |
|
91 start_method = EWaitForStart; |
|
92 }, |
|
93 START_PROCESS_INFO2 |
|
94 { |
|
95 path = "Z:\\sys\\bin\\sysmondemoserv.exe"; |
|
96 monitor = 1 ; |
|
97 } |
|
98 }; |
|
99 } |
|
100 |
|
101 // |
|
102 // CRITICAL-DYNAMIC startup state |
|
103 // |
|
104 RESOURCE STATE_INFO r_startup_state_critical_dynamic |
|
105 { |
|
106 id = EStartupStateCriticalDynamic; |
|
107 name = "Critical Dynamic"; |
|
108 command_list = r_critical_dynamic_commands; |
|
109 next = r_startup_state_networking_critical; |
|
110 } |
|
111 |
|
112 RESOURCE COMMAND_ARRAY r_critical_dynamic_commands |
|
113 { |
|
114 commands = |
|
115 { |
|
116 START_PROCESS_INFO |
|
117 { |
|
118 path = "Z:\\sys\\bin\\apsexe.exe"; |
|
119 start_method = EWaitForStart; // this is the only method allowable for apsexe.exe |
|
120 }, |
|
121 START_APP_INFO |
|
122 { |
|
123 path = "Z:\\sys\\bin\\shell.exe"; // Requires apparc to be properly started |
|
124 viewless = 1; |
|
125 start_method = EDeferredWaitForStart; |
|
126 }, |
|
127 MULTIPLE_WAIT |
|
128 { |
|
129 timeout = 10000; |
|
130 fail_on_error = EPanicOnCommandFailure; |
|
131 }, |
|
132 SPLASH_SCREEN |
|
133 { |
|
134 kill = 1; |
|
135 } |
|
136 }; |
|
137 } |
|
138 |
|
139 // |
|
140 // Networking-CRITICAL startup state |
|
141 // |
|
142 RESOURCE STATE_INFO r_startup_state_networking_critical |
|
143 { |
|
144 id = EStartupStateNetworkingCritical; |
|
145 name = "Networking-Critical"; |
|
146 command_list = r_networking_critical_commands; |
|
147 next = r_startup_state_non_critical; |
|
148 } |
|
149 |
|
150 RESOURCE COMMAND_ARRAY r_networking_critical_commands |
|
151 { |
|
152 commands = |
|
153 { |
|
154 START_PROCESS_INFO |
|
155 { |
|
156 path = "Z:\\sys\\bin\\c32start.exe"; |
|
157 start_method = EWaitForStart; |
|
158 }, |
|
159 START_PROCESS_INFO |
|
160 { |
|
161 path = "Z:\\sys\\bin\\msexe.exe"; |
|
162 start_method = EWaitForStart; |
|
163 }, |
|
164 START_PROCESS_INFO |
|
165 { |
|
166 path = "Z:\\sys\\bin\\watcher.exe"; |
|
167 start_method = EWaitForStart; |
|
168 } |
|
169 }; |
|
170 } |
|
171 |
|
172 |
|
173 |
|
174 // |
|
175 // NON-CRITICAL startup state |
|
176 // |
|
177 RESOURCE STATE_INFO r_startup_state_non_critical |
|
178 { |
|
179 id = EStartupStateNonCritical; |
|
180 name = "Non-critical"; |
|
181 command_list = r_non_critical_commands; |
|
182 next = 0; // No more state transitions |
|
183 } |
|
184 |
|
185 RESOURCE COMMAND_ARRAY r_non_critical_commands |
|
186 { |
|
187 commands = |
|
188 { |
|
189 START_AMA_STARTER |
|
190 { |
|
191 |
|
192 }, |
|
193 START_PROCESS_INFO |
|
194 { |
|
195 path = "Z:\\sys\\bin\\SystemAMS.exe"; |
|
196 args = "-boot"; |
|
197 fail_on_error = EIgnoreCommandFailure; |
|
198 }, |
|
199 START_PROCESS_INFO |
|
200 { |
|
201 path = "Z:\\sys\\bin\\swidaemon.exe"; |
|
202 start_method = EWaitForStart; |
|
203 }, |
|
204 START_PROCESS_INFO |
|
205 { |
|
206 path = "Z:\\sys\\bin\\cntsrv.exe"; |
|
207 args = "-nontransient"; |
|
208 fail_on_error = 0; |
|
209 }, |
|
210 START_PROCESS_INFO |
|
211 { |
|
212 path = "Z:\\sys\\bin\\agsvexe.exe"; |
|
213 args = "-nontransient"; |
|
214 fail_on_error = 0; |
|
215 }, |
|
216 START_PROCESS_INFO |
|
217 { |
|
218 path = "Z:\\sys\\bin\\fotaagent.exe"; |
|
219 fail_on_error = EIgnoreCommandFailure; |
|
220 } |
|
221 }; |
|
222 } |
|
223 |
|
224 |