systemhealthmanagement/systemhealthmgr/test/tsysmon/resource/hardware/appfwk-sysmon-eiof_hardware0.rss
branchRCL_3
changeset 21 ccb4f6b3db21
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/systemhealthmanagement/systemhealthmgr/test/tsysmon/resource/hardware/appfwk-sysmon-eiof_hardware0.rss	Tue Aug 31 16:29:05 2010 +0300
@@ -0,0 +1,113 @@
+// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// Resource file to add exes that are started during boot-up 
+// with IgnoreOnFailure policy
+// 
+//
+
+#include <ssm/ssmcmd.rh>
+#include <ssm/ssmsubstates.hrh>
+#include <ssm/cmdpersistreboots.rh>
+#include <ssm/cmdpersistreboots.hrh>
+#include "ssmsubstateext.hrh"
+
+UID2 KUidSsmCommandListResourceFile
+
+// SSM_COMMAND_LIST_ROOT must be the first resource in a command list resource file.
+// The SSM relies on this having a resource ID of 1.
+RESOURCE SSM_COMMAND_LIST_ROOT
+	{
+	command_list_mapping = r_command_list_mapping;
+	}
+
+RESOURCE SSM_COMMAND_LIST_MAPPING r_command_list_mapping
+	{
+	mappings =
+		{
+        SSM_COMMANDLISTID_TO_RESOURCEID
+            {
+            command_list_id = ESsmStateStartingCriticalApps;
+            resource_id = r_cmds_critical;
+            },
+        SSM_COMMANDLISTID_TO_RESOURCEID
+            {
+            command_list_id = ESsmStateNonCritical;
+            resource_id = r_cmds_noncritical;
+            }
+		};
+	}
+
+RESOURCE SSM_COMMAND_LIST r_cmds_critical
+    {
+    commands =
+        {
+        r_command_app_startupregeiof,
+        r_command_app_startupregeioffailstart1
+        };
+    }
+
+RESOURCE SSM_COMMAND_LIST r_cmds_noncritical
+    {
+    commands =
+        {
+        r_command_app_faileiofcount0,
+        r_command_app_faileiofcount1fail,
+        r_command_app_failcount2failwait
+        };
+    }
+
+RESOURCE SSM_START_PROCESS_INFO r_command_app_startupregeiof
+    {
+    severity = ECmdCriticalSeverity;
+    name = "tsysmon_app_startupregeiof.exe";
+    args = "43";
+    execution_behaviour = ESsmWaitForSignal;
+    monitor_info = r_command_monitor;
+    }
+
+RESOURCE SSM_START_PROCESS_INFO r_command_app_startupregeioffailstart1
+    {
+    severity = ECmdIgnoreFailure;
+    name = "tsysmon_app_startupregeioffailstart1.exe";
+    args = "44";
+    execution_behaviour = ESsmWaitForSignal;
+    monitor_info = r_command_monitor;
+    }
+
+RESOURCE SSM_MONITOR_INFO r_command_monitor
+    {
+    restart_policy = ESsmIgnoreOnFailure;
+    restart_mode = 0;
+    timeout = 0;
+    retries = 0;
+    }
+
+RESOURCE SSM_START_PROCESS_INFO r_command_app_faileiofcount0
+    {
+    name = "tsysmon_app_faileiofcount0.exe";
+    args = "APPFWK-SYSMON-0033";
+    }
+
+RESOURCE SSM_START_PROCESS_INFO r_command_app_faileiofcount1fail
+    {
+    name = "tsysmon_app_faileiofcount1fail.exe";
+    args = "APPFWK-SYSMON-0034";
+    }
+
+RESOURCE SSM_START_PROCESS_INFO r_command_app_failcount2failwait
+    {
+    name = "tsysmon_app_failcount2failwait.exe";
+    args = "APPFWK-SYSMON-0038";
+    }
+