###############################################################################
#
# Open iT Patch definition
#

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

# Stop reporting server
stop
{
	error=warning
	module=reportingserver
}

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

# Install PHP files
installfromdir
{
	error=fatal
	source=web/php/
	target=%installdir%/ReportingServer/
}

#Install openit_archiver
install
{
	error=fatal
	source=bin/openit_archiver.exe
	target=%installdir%bin\openit_archiver.exe
}

# Update archiver.xml and jobscheduler.xml
run
{
	error=warning
	source=batscript.oms
	timeout=300
}

# Start openitserver
start
{
	error=warning
	module=server
}

# Start reporting server
start
{
	error=warning
	module=reportingserver
}

