systemhealthmanagement/systemhealthmgr/test/tsysmon/resource/hardware/appfwk-sysmon-eiof_hardware0.rss
branchRCL_3
changeset 21 ccb4f6b3db21
equal deleted inserted replaced
20:1ddbe54d0645 21:ccb4f6b3db21
       
     1 // Copyright (c) 2010 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 add exes that are started during boot-up 
       
    15 // with IgnoreOnFailure policy
       
    16 // 
       
    17 //
       
    18 
       
    19 #include <ssm/ssmcmd.rh>
       
    20 #include <ssm/ssmsubstates.hrh>
       
    21 #include <ssm/cmdpersistreboots.rh>
       
    22 #include <ssm/cmdpersistreboots.hrh>
       
    23 #include "ssmsubstateext.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 = ESsmStateStartingCriticalApps;
       
    41             resource_id = r_cmds_critical;
       
    42             },
       
    43         SSM_COMMANDLISTID_TO_RESOURCEID
       
    44             {
       
    45             command_list_id = ESsmStateNonCritical;
       
    46             resource_id = r_cmds_noncritical;
       
    47             }
       
    48 		};
       
    49 	}
       
    50 
       
    51 RESOURCE SSM_COMMAND_LIST r_cmds_critical
       
    52     {
       
    53     commands =
       
    54         {
       
    55         r_command_app_startupregeiof,
       
    56         r_command_app_startupregeioffailstart1
       
    57         };
       
    58     }
       
    59 
       
    60 RESOURCE SSM_COMMAND_LIST r_cmds_noncritical
       
    61     {
       
    62     commands =
       
    63         {
       
    64         r_command_app_faileiofcount0,
       
    65         r_command_app_faileiofcount1fail,
       
    66         r_command_app_failcount2failwait
       
    67         };
       
    68     }
       
    69 
       
    70 RESOURCE SSM_START_PROCESS_INFO r_command_app_startupregeiof
       
    71     {
       
    72     severity = ECmdCriticalSeverity;
       
    73     name = "tsysmon_app_startupregeiof.exe";
       
    74     args = "43";
       
    75     execution_behaviour = ESsmWaitForSignal;
       
    76     monitor_info = r_command_monitor;
       
    77     }
       
    78 
       
    79 RESOURCE SSM_START_PROCESS_INFO r_command_app_startupregeioffailstart1
       
    80     {
       
    81     severity = ECmdIgnoreFailure;
       
    82     name = "tsysmon_app_startupregeioffailstart1.exe";
       
    83     args = "44";
       
    84     execution_behaviour = ESsmWaitForSignal;
       
    85     monitor_info = r_command_monitor;
       
    86     }
       
    87 
       
    88 RESOURCE SSM_MONITOR_INFO r_command_monitor
       
    89     {
       
    90     restart_policy = ESsmIgnoreOnFailure;
       
    91     restart_mode = 0;
       
    92     timeout = 0;
       
    93     retries = 0;
       
    94     }
       
    95 
       
    96 RESOURCE SSM_START_PROCESS_INFO r_command_app_faileiofcount0
       
    97     {
       
    98     name = "tsysmon_app_faileiofcount0.exe";
       
    99     args = "APPFWK-SYSMON-0033";
       
   100     }
       
   101 
       
   102 RESOURCE SSM_START_PROCESS_INFO r_command_app_faileiofcount1fail
       
   103     {
       
   104     name = "tsysmon_app_faileiofcount1fail.exe";
       
   105     args = "APPFWK-SYSMON-0034";
       
   106     }
       
   107 
       
   108 RESOURCE SSM_START_PROCESS_INFO r_command_app_failcount2failwait
       
   109     {
       
   110     name = "tsysmon_app_failcount2failwait.exe";
       
   111     args = "APPFWK-SYSMON-0038";
       
   112     }
       
   113