|
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 monitor |
|
15 // WARNING: Any changes made to this resource file must be |
|
16 // checked against the system monitor test cases. |
|
17 // |
|
18 // |
|
19 |
|
20 #include <ssm/ssmcmd.rh> |
|
21 #include <ssm/ssmsubstates.hrh> |
|
22 #include <ssm/cmdpersistreboots.rh> |
|
23 #include <ssm/cmdpersistreboots.hrh> |
|
24 |
|
25 UID2 KUidSsmCommandListResourceFile |
|
26 |
|
27 // SSM_COMMAND_LIST_ROOT must be the first resource in a command list resource file. |
|
28 // The SSM relies on this having a resource ID of 1. |
|
29 RESOURCE SSM_COMMAND_LIST_ROOT |
|
30 { |
|
31 command_list_mapping = r_command_list_mapping; |
|
32 } |
|
33 |
|
34 RESOURCE SSM_COMMAND_LIST_MAPPING r_command_list_mapping |
|
35 { |
|
36 mappings = |
|
37 { |
|
38 SSM_COMMANDLISTID_TO_RESOURCEID |
|
39 { |
|
40 command_list_id = ESsmStartupSubStateCriticalStatic; |
|
41 resource_id = r_critical_static_commands; |
|
42 }, |
|
43 SSM_COMMANDLISTID_TO_RESOURCEID |
|
44 { |
|
45 command_list_id = ESsmStartupSubStateCriticalDynamic; |
|
46 resource_id = r_critical_dynamic_commands; |
|
47 }, |
|
48 SSM_COMMANDLISTID_TO_RESOURCEID |
|
49 { |
|
50 command_list_id = ESsmStartupSubStateNetworkingCritical; |
|
51 resource_id = r_networking_critical_commands; |
|
52 }, |
|
53 SSM_COMMANDLISTID_TO_RESOURCEID |
|
54 { |
|
55 command_list_id = ESsmStartupSubStateNonCritical; |
|
56 resource_id = r_non_critical_commands; |
|
57 } |
|
58 }; |
|
59 } |
|
60 |
|
61 |
|
62 RESOURCE SSM_COMMAND_LIST r_critical_static_commands |
|
63 { |
|
64 commands = |
|
65 { |
|
66 r_increment_boot_count |
|
67 , r_command_publish_system_state |
|
68 , r_command_ssmutilsrv |
|
69 , r_command_sysmon |
|
70 , r_command_sysagt2svr |
|
71 , r_command_fbserv |
|
72 , r_command_wserv |
|
73 , r_command_set_splash_property |
|
74 , r_command_start_splash |
|
75 , r_command_eiksrvs |
|
76 , r_command_tzserver |
|
77 }; |
|
78 } |
|
79 |
|
80 RESOURCE SSM_COMMAND_LIST r_critical_dynamic_commands |
|
81 { |
|
82 commands = |
|
83 { |
|
84 r_command_publish_system_state |
|
85 , r_command_initialise_locale |
|
86 , r_command_apparc |
|
87 , r_command_shell |
|
88 , r_command_multiple_wait |
|
89 , r_command_remove_splash_property |
|
90 }; |
|
91 } |
|
92 |
|
93 RESOURCE SSM_COMMAND_LIST r_networking_critical_commands |
|
94 { |
|
95 commands = |
|
96 { |
|
97 r_command_publish_system_state |
|
98 , r_command_c32start |
|
99 , r_command_msexe |
|
100 , r_command_watcher |
|
101 }; |
|
102 } |
|
103 |
|
104 RESOURCE SSM_COMMAND_LIST r_non_critical_commands |
|
105 { |
|
106 commands = |
|
107 { |
|
108 r_command_publish_system_state |
|
109 , r_command_system_ams |
|
110 , r_command_swidaemon |
|
111 , r_command_cntsrv |
|
112 , r_command_agsvexe |
|
113 , r_command_fotaagent |
|
114 , r_command_schexe |
|
115 , r_command_ama_starter |
|
116 , r_command_app_faileiofcount1fail |
|
117 }; |
|
118 } |
|
119 |
|
120 |
|
121 RESOURCE SSM_START_PROCESS_INFO r_command_ssmutilsrv |
|
122 { |
|
123 severity = ECmdCriticalSeverity; |
|
124 name = "ssmutilsrv.exe"; |
|
125 execution_behaviour = ESsmWaitForSignal; |
|
126 retries = 2; |
|
127 } |
|
128 |
|
129 RESOURCE SSM_START_PROCESS_INFO r_command_sysmon |
|
130 { |
|
131 severity = ECmdCriticalSeverity; |
|
132 name = "sysmon.exe"; |
|
133 execution_behaviour = ESsmWaitForSignal; |
|
134 retries = 2; |
|
135 } |
|
136 |
|
137 RESOURCE SSM_START_PROCESS_INFO r_command_sysagt2svr |
|
138 { |
|
139 severity = ECmdCriticalSeverity; |
|
140 name = "SysAgt2Svr.exe"; |
|
141 execution_behaviour = ESsmWaitForSignal; |
|
142 retries = 2; |
|
143 } |
|
144 |
|
145 RESOURCE SSM_START_PROCESS_INFO r_command_fbserv |
|
146 { |
|
147 severity = ECmdCriticalSeverity; |
|
148 name = "fbserv.exe"; |
|
149 execution_behaviour = ESsmWaitForSignal; |
|
150 retries = 1; |
|
151 } |
|
152 |
|
153 RESOURCE SSM_START_PROCESS_INFO r_command_wserv |
|
154 { |
|
155 severity = ECmdCriticalSeverity; |
|
156 name = "wserv.exe"; |
|
157 args = "-NoShell"; |
|
158 execution_behaviour = ESsmWaitForSignal; |
|
159 } |
|
160 |
|
161 RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_command_set_splash_property |
|
162 { |
|
163 severity = ECmdCriticalSeverity; |
|
164 category = 0x2000D75B; |
|
165 key = 0x01; |
|
166 } |
|
167 |
|
168 RESOURCE SSM_START_PROCESS_INFO r_command_start_splash |
|
169 { |
|
170 severity = ECmdCriticalSeverity; |
|
171 name = "splash.exe"; |
|
172 execution_behaviour = ESsmFireAndForget; |
|
173 } |
|
174 |
|
175 RESOURCE SSM_START_PROCESS_INFO r_command_eiksrvs |
|
176 { |
|
177 severity = ECmdCriticalSeverity; |
|
178 name = "eiksrvs.exe"; |
|
179 args = "-OnlyStartDependentServers"; |
|
180 execution_behaviour = ESsmWaitForSignal; |
|
181 } |
|
182 |
|
183 RESOURCE SSM_START_PROCESS_INFO r_command_tzserver |
|
184 { |
|
185 severity = ECmdCriticalSeverity; |
|
186 name = "tzserver.exe"; |
|
187 execution_behaviour = ESsmWaitForSignal; |
|
188 } |
|
189 |
|
190 RESOURCE SSM_START_PROCESS_INFO r_command_initialise_locale |
|
191 { |
|
192 name = "initialiselocale.exe"; |
|
193 execution_behaviour = ESsmWaitForSignal; |
|
194 } |
|
195 |
|
196 RESOURCE SSM_START_PROCESS_INFO r_command_apparc |
|
197 { |
|
198 severity = ECmdCriticalSeverity; |
|
199 name = "apsexe.exe"; |
|
200 execution_behaviour = ESsmWaitForSignal; |
|
201 } |
|
202 |
|
203 RESOURCE SSM_START_APP_INFO r_command_shell |
|
204 { |
|
205 severity = ECmdCriticalSeverity; |
|
206 name = "shell.exe"; |
|
207 execution_behaviour = ESsmDeferredWaitForSignal; |
|
208 viewless = 1; |
|
209 } |
|
210 |
|
211 RESOURCE SSM_MULTIPLE_WAIT r_command_multiple_wait |
|
212 { |
|
213 timeout = 20000; |
|
214 } |
|
215 |
|
216 RESOURCE SSM_SET_PUBLISH_AND_SUBSCRIBE r_command_remove_splash_property |
|
217 { |
|
218 severity = ECmdCriticalSeverity; |
|
219 category = 0x2000D75B; |
|
220 key = 0x01; |
|
221 value = 1; |
|
222 } |
|
223 |
|
224 RESOURCE SSM_START_PROCESS_INFO r_command_c32start |
|
225 { |
|
226 severity = ECmdCriticalSeverity; |
|
227 name = "c32start.exe"; |
|
228 execution_behaviour = ESsmWaitForSignal; |
|
229 } |
|
230 |
|
231 RESOURCE SSM_START_PROCESS_INFO r_command_msexe |
|
232 { |
|
233 severity = ECmdCriticalSeverity; |
|
234 name = "msexe.exe"; |
|
235 execution_behaviour = ESsmWaitForSignal; |
|
236 } |
|
237 |
|
238 RESOURCE SSM_START_PROCESS_INFO r_command_watcher |
|
239 { |
|
240 severity = ECmdCriticalSeverity; |
|
241 name = "watcher.exe"; |
|
242 execution_behaviour = ESsmWaitForSignal; |
|
243 } |
|
244 |
|
245 RESOURCE SSM_START_PROCESS_INFO r_command_system_ams |
|
246 { |
|
247 name = "SystemAMS.exe"; |
|
248 args = "-boot"; |
|
249 } |
|
250 |
|
251 RESOURCE SSM_START_PROCESS_INFO r_command_swidaemon |
|
252 { |
|
253 severity = ECmdCriticalSeverity; |
|
254 name = "swidaemon.exe"; |
|
255 execution_behaviour = ESsmWaitForSignal; |
|
256 } |
|
257 |
|
258 RESOURCE SSM_START_PROCESS_INFO r_command_cntsrv |
|
259 { |
|
260 severity = ECmdCriticalSeverity; |
|
261 name = "cntsrv.exe"; |
|
262 args = "-nontransient"; |
|
263 } |
|
264 |
|
265 RESOURCE SSM_START_PROCESS_INFO r_command_agsvexe |
|
266 { |
|
267 severity = ECmdCriticalSeverity; |
|
268 name = "agsvexe.exe"; |
|
269 args = "-nontransient"; |
|
270 } |
|
271 |
|
272 RESOURCE SSM_START_PROCESS_INFO r_command_fotaagent |
|
273 { |
|
274 name = "fotaagent.exe"; |
|
275 } |
|
276 |
|
277 RESOURCE SSM_START_PROCESS_INFO r_command_schexe |
|
278 { |
|
279 name = "schexe.exe"; |
|
280 args = "sysstartschexe"; |
|
281 } |
|
282 |
|
283 RESOURCE SSM_START_AMA_STARTER r_command_ama_starter |
|
284 { |
|
285 severity = ECmdIgnoreFailure; |
|
286 dsc_id = 0x2000836D; // removing this id will cause a rcomp failure unless dsc_id is #defined in ssmcmd.rh file. |
|
287 } |
|
288 |
|
289 RESOURCE SSM_PUBLISH_SYSTEM_STATE r_command_publish_system_state |
|
290 { |
|
291 severity = ECmdCriticalSeverity; |
|
292 } |
|
293 |
|
294 RESOURCE SSM_START_CUSTOM_COMMAND r_increment_boot_count |
|
295 { |
|
296 severity = ECmdCriticalSeverity; |
|
297 execution_behaviour = ESsmWaitForSignal; |
|
298 dllname = "cmncustomcmds.dll"; |
|
299 ordinal = 1; // Persist reboots custom command is at ordinal 1 |
|
300 dll_data = r_increment; |
|
301 } |
|
302 |
|
303 RESOURCE SSM_COMMAND_PERSIST_REBOOTS r_increment |
|
304 { |
|
305 val = EIncrementBootCount; |
|
306 } |
|
307 |
|
308 RESOURCE SSM_START_PROCESS_INFO r_command_app_faileiofcount1fail |
|
309 { |
|
310 name = "tsysmon_app_faileiofcount1fail.exe"; |
|
311 args = "APPFWK-SYSMON-0034"; |
|
312 } |
|
313 |