// Copyright (c) 2008-2009 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 launch sysstart.exe. Fallback mechanism used when resource for startup state is not found.
//
//
#include <ssm/ssmcmd.rh>
#include <ssm/ssmsubstates.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 = ESsmStartupSubStateCriticalStatic;
resource_id = r_fallback_to_sysstart;
},
SSM_COMMANDLISTID_TO_RESOURCEID
{
command_list_id = ESsmStartupSubStateCriticalDynamic;
resource_id = r_fallback_to_sysagt2srv_and_wserv;
}
};
}
RESOURCE SSM_COMMAND_LIST r_fallback_to_sysstart
{
commands =
{
r_command_launch_sysstart
, r_command_publish_system_state
, r_command_ssmutilsrv
};
}
RESOURCE SSM_COMMAND_LIST r_fallback_to_sysagt2srv_and_wserv
{
commands =
{
r_command_launch_sysagt2srv
, r_command_launch_wserv
, r_command_publish_system_state
, r_command_ssmutilsrv
};
}
RESOURCE SSM_PUBLISH_SYSTEM_STATE r_command_publish_system_state
{
}
RESOURCE SSM_START_PROCESS_INFO r_command_launch_sysstart
{
severity = ECmdCriticalSeverity;
name = "sysstart.exe";
execution_behaviour = ESsmWaitForSignal;
}
RESOURCE SSM_START_PROCESS_INFO r_command_ssmutilsrv
{
severity = ECmdCriticalSeverity;
name = "ssmutilsrv.exe";
execution_behaviour = ESsmWaitForSignal;
retries = 2;
}
RESOURCE SSM_START_PROCESS_INFO r_command_launch_sysagt2srv
{
severity = ECmdCriticalSeverity;
name = "sysagt2svr.exe";
execution_behaviour = ESsmWaitForSignal;
}
RESOURCE SSM_START_PROCESS_INFO r_command_launch_wserv
{
severity = ECmdCriticalSeverity;
name = "wserv.exe";
execution_behaviour = ESsmWaitForSignal;
}