|
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 // ENTRY POINT |
|
26 // |
|
27 |
|
28 // THIS MUST BE THE FIRST RESOURCE. The system relies on |
|
29 // this having a resource ID of 1 |
|
30 |
|
31 RESOURCE STARTUP_ENTRY_POINT r_entry_point |
|
32 { |
|
33 entry_point = r_startup_state_critical_static; |
|
34 } |
|
35 // |
|
36 |
|
37 |
|
38 |
|
39 // |
|
40 // CRITICAL-STATIC startup state |
|
41 // |
|
42 RESOURCE STATE_INFO r_startup_state_critical_static |
|
43 { |
|
44 id = EStartupStateCriticalStatic; |
|
45 name = "Critical Static"; |
|
46 command_list = r_critical_static_commands; |
|
47 next = r_startup_state_critical_dynamic; |
|
48 } |
|
49 |
|
50 RESOURCE COMMAND_ARRAY r_critical_static_commands |
|
51 { |
|
52 commands = |
|
53 { |
|
54 START_PROCESS_INFO |
|
55 { |
|
56 path = "Z:\\sys\\bin\\SysAgt2Svr.exe"; |
|
57 start_method = EWaitForStart; |
|
58 no_of_retries_on_failure = 2; |
|
59 }, |
|
60 START_PROCESS_INFO |
|
61 { |
|
62 path = "Z:\\sys\\bin\\fbserv.exe"; |
|
63 start_method = EWaitForStart; |
|
64 no_of_retries_on_failure = 1; |
|
65 }, |
|
66 START_PROCESS_INFO |
|
67 { |
|
68 path = "Z:\\sys\\bin\\ewsrv.exe"; |
|
69 args = "-NoShell"; |
|
70 start_method = EWaitForStart; |
|
71 }, |
|
72 SPLASH_SCREEN |
|
73 { |
|
74 path = "Z:\\sys\\bin\\splash.exe"; |
|
75 }, |
|
76 START_PROCESS_INFO |
|
77 { |
|
78 path = "Z:\\sys\\bin\\eiksrvs.exe"; |
|
79 args = "-OnlyStartDependentServers"; |
|
80 start_method = EWaitForStart; |
|
81 }, |
|
82 START_PROCESS_INFO |
|
83 { |
|
84 path = "Z:\\sys\\bin\\sisregistryserver.exe"; |
|
85 start_method = EWaitForStart; |
|
86 }, |
|
87 START_PROCESS_INFO |
|
88 { |
|
89 path = "Z:\\sys\\bin\\tzserver.exe"; |
|
90 start_method = EWaitForStart; |
|
91 }, |
|
92 START_APP_INFO2 |
|
93 { |
|
94 path = "Z:\\sys\\bin\\sysmondemoserv.exe"; |
|
95 monitor = 1; |
|
96 } |
|
97 }; |
|
98 } |
|
99 |
|
100 // |
|
101 // CRITICAL-DYNAMIC startup state |
|
102 // |
|
103 RESOURCE STATE_INFO r_startup_state_critical_dynamic |
|
104 { |
|
105 id = EStartupStateCriticalDynamic; |
|
106 name = "Critical Dynamic"; |
|
107 command_list = r_critical_dynamic_commands; |
|
108 next = r_startup_state_networking_critical; |
|
109 } |
|
110 |
|
111 RESOURCE COMMAND_ARRAY r_critical_dynamic_commands |
|
112 { |
|
113 commands = |
|
114 { |
|
115 START_PROCESS_INFO |
|
116 { |
|
117 path = "Z:\\sys\\bin\\apsexe.exe"; |
|
118 start_method = EWaitForStart; // this is the only method allowable for apsexe.exe |
|
119 }, |
|
120 START_APP_INFO |
|
121 { |
|
122 path = "Z:\\sys\\bin\\shell.exe"; // Requires apparc to be properly started |
|
123 start_method = EDeferredWaitForStart; |
|
124 viewless = 1; |
|
125 }, |
|
126 MULTIPLE_WAIT |
|
127 { |
|
128 timeout = 10000; |
|
129 fail_on_error = EPanicOnCommandFailure; |
|
130 }, |
|
131 SPLASH_SCREEN |
|
132 { |
|
133 kill = 1; |
|
134 } |
|
135 }; |
|
136 } |
|
137 |
|
138 // |
|
139 // Networking-CRITICAL startup state |
|
140 // |
|
141 RESOURCE STATE_INFO r_startup_state_networking_critical |
|
142 { |
|
143 id = EStartupStateNetworkingCritical; |
|
144 name = "Networking-Critical"; |
|
145 command_list = r_networking_critical_commands; |
|
146 next = r_startup_state_non_critical; |
|
147 } |
|
148 |
|
149 RESOURCE COMMAND_ARRAY r_networking_critical_commands |
|
150 { |
|
151 commands = |
|
152 { |
|
153 START_PROCESS_INFO |
|
154 { |
|
155 path = "Z:\\sys\\bin\\c32start.exe"; |
|
156 start_method = EWaitForStart; |
|
157 }, |
|
158 START_PROCESS_INFO |
|
159 { |
|
160 path = "Z:\\sys\\bin\\msexe.exe"; |
|
161 start_method = EWaitForStart; |
|
162 }, |
|
163 START_PROCESS_INFO |
|
164 { |
|
165 path = "Z:\\sys\\bin\\watcher.exe"; |
|
166 start_method = EWaitForStart; |
|
167 } |
|
168 }; |
|
169 } |
|
170 |
|
171 |
|
172 // |
|
173 // NON-CRITICAL startup state |
|
174 // |
|
175 RESOURCE STATE_INFO r_startup_state_non_critical |
|
176 { |
|
177 id = EStartupStateNonCritical; |
|
178 name = "Non-critical"; |
|
179 command_list = r_non_critical_commands; |
|
180 next = 0; // No more state transitions |
|
181 } |
|
182 |
|
183 RESOURCE COMMAND_ARRAY r_non_critical_commands |
|
184 { |
|
185 commands = |
|
186 { |
|
187 START_AMA_STARTER |
|
188 { |
|
189 |
|
190 }, |
|
191 START_PROCESS_INFO |
|
192 { |
|
193 path = "Z:\\sys\\bin\\SystemAMS.exe"; |
|
194 args = "-boot"; |
|
195 fail_on_error = EIgnoreCommandFailure; |
|
196 }, |
|
197 START_PROCESS_INFO |
|
198 { |
|
199 path = "Z:\\sys\\bin\\swidaemon.exe"; |
|
200 start_method = EWaitForStart; |
|
201 }, |
|
202 START_PROCESS_INFO |
|
203 { |
|
204 path = "Z:\\sys\\bin\\cntsrv.exe"; |
|
205 args = "-nontransient"; |
|
206 fail_on_error = 0; |
|
207 }, |
|
208 START_PROCESS_INFO |
|
209 { |
|
210 path = "Z:\\sys\\bin\\agsvexe.exe"; |
|
211 args = "-nontransient"; |
|
212 fail_on_error = 0; |
|
213 }, |
|
214 START_PROCESS_INFO |
|
215 { |
|
216 path = "Z:\\sys\\bin\\fotaagent.exe"; |
|
217 fail_on_error = EIgnoreCommandFailure; |
|
218 } |
|
219 }; |
|
220 } |
|
221 |
|
222 |
|
223 |
|
224 |