|
1 // Copyright (c) 2008-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 // Resource file to launch sysstart.exe. Fallback mechanism used when resource for startup state is not found. |
|
15 // |
|
16 // |
|
17 |
|
18 #include <ssm/ssmcmd.rh> |
|
19 #include <ssm/ssmsubstates.hrh> |
|
20 |
|
21 UID2 KUidSsmCommandListResourceFile |
|
22 |
|
23 // SSM_COMMAND_LIST_ROOT must be the first resource in a command list resource file. |
|
24 // The SSM relies on this having a resource ID of 1. |
|
25 RESOURCE SSM_COMMAND_LIST_ROOT |
|
26 { |
|
27 command_list_mapping = r_command_list_mapping; |
|
28 } |
|
29 |
|
30 RESOURCE SSM_COMMAND_LIST_MAPPING r_command_list_mapping |
|
31 { |
|
32 mappings = |
|
33 { |
|
34 SSM_COMMANDLISTID_TO_RESOURCEID |
|
35 { |
|
36 command_list_id = ESsmStartupSubStateCriticalStatic; |
|
37 resource_id = r_fallback_to_sysstart; |
|
38 }, |
|
39 SSM_COMMANDLISTID_TO_RESOURCEID |
|
40 { |
|
41 command_list_id = ESsmStartupSubStateCriticalDynamic; |
|
42 resource_id = r_fallback_to_sysagt2srv_and_wserv; |
|
43 } |
|
44 }; |
|
45 } |
|
46 |
|
47 RESOURCE SSM_COMMAND_LIST r_fallback_to_sysstart |
|
48 { |
|
49 commands = |
|
50 { |
|
51 r_command_launch_sysstart |
|
52 , r_command_publish_system_state |
|
53 , r_command_ssmutilsrv |
|
54 }; |
|
55 } |
|
56 |
|
57 RESOURCE SSM_COMMAND_LIST r_fallback_to_sysagt2srv_and_wserv |
|
58 { |
|
59 commands = |
|
60 { |
|
61 r_command_launch_sysagt2srv |
|
62 , r_command_launch_wserv |
|
63 , r_command_publish_system_state |
|
64 , r_command_ssmutilsrv |
|
65 }; |
|
66 } |
|
67 |
|
68 RESOURCE SSM_PUBLISH_SYSTEM_STATE r_command_publish_system_state |
|
69 { |
|
70 } |
|
71 |
|
72 RESOURCE SSM_START_PROCESS_INFO r_command_launch_sysstart |
|
73 { |
|
74 severity = ECmdCriticalSeverity; |
|
75 name = "sysstart.exe"; |
|
76 execution_behaviour = ESsmWaitForSignal; |
|
77 } |
|
78 |
|
79 RESOURCE SSM_START_PROCESS_INFO r_command_ssmutilsrv |
|
80 { |
|
81 severity = ECmdCriticalSeverity; |
|
82 name = "ssmutilsrv.exe"; |
|
83 execution_behaviour = ESsmWaitForSignal; |
|
84 retries = 2; |
|
85 } |
|
86 |
|
87 RESOURCE SSM_START_PROCESS_INFO r_command_launch_sysagt2srv |
|
88 { |
|
89 severity = ECmdCriticalSeverity; |
|
90 name = "sysagt2svr.exe"; |
|
91 execution_behaviour = ESsmWaitForSignal; |
|
92 } |
|
93 |
|
94 RESOURCE SSM_START_PROCESS_INFO r_command_launch_wserv |
|
95 { |
|
96 severity = ECmdCriticalSeverity; |
|
97 name = "ewsrv.exe"; |
|
98 execution_behaviour = ESsmWaitForSignal; |
|
99 } |
|
100 |