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