# Stop service
stop
{
	error=warning
	module=service
}

# Stop UsageAnalyzer
stop
{
	error=warning
	module=sentinelprocesses
}

# Wait for all previously signalled programs to stop
waitstop
{
	error=fatal
	timeout=60
	kill=no
}

# Back up configuration file before modifying it
backup
{
	error=fatal
	source=%confdir%/Components/freezemonitor.xml
}

backup
{
	error=fatal
	source=%confdir%/LogMessages/freezemonitor.desc
}

backup
{
	error=fatal
	source=%confdir%/LogMessages/freezemonitor.mess
}

confcopy
{
	error=warning
	source=conf/return-command-backup.xml
	target=%confdir%/Components/freezemonitor.xml
	source-path=DCML.arguments-backup
	target-path=DCML.freezemonitor.lm.flex.return-command
	replace=yes
}

install
{
	error=warning
	source=conf/disabler_messages.txt
	target=%confdir%/disabler_messages.txt
}

install
{
	error=warning
	source=conf/freezemonitor.desc
	target=%confdir%/LogMessages/freezemonitor.desc
}

install
{
	error=warning
	source=conf/freezemonitor.mess
	target=%confdir%/LogMessages/freezemonitor.mess
}

install
{
	error=fatal
	condition=openitversion >= 6010000
	source=bin/openit_freezemonitor.exe
	target=%installdir%/bin/openit_freezemonitor.exe
}

install
{
	error=fatal
	condition=openitversion >= 6010000
	source=bin/openit_disabler.exe
	target=%installdir%/bin/openit_disabler.exe
}


install
{
	error=fatal
	source=bin/recorder.dll
	target=%installdir%/bin/recorder.dll
}


# Start UsageAnalyzer
start
{
	error=warning
	module=sentinelprocesses
}

# Start service
start
{
	error=warning
	module=service
}