sysstatemgmt/systemstateplugins/gsapolicy/resource/wins/fallbacktosysstart.rss
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 02:28:24 +0300
changeset 74 9d35fd98f273
parent 0 4e1aa6a622a0
permissions -rw-r--r--
Revision: 201039 Kit: 201039

// 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;
	}