Skip to content
Snippets Groups Projects
Commit d663d262 authored by Mark Harrison's avatar Mark Harrison
Browse files

Configs/startup scripts for running resmon2 side by side with resmon 1

git-svn-id: https://labs.omniti.com/resmon/trunk@438 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55
parent 3c5ec81e
No related branches found
No related tags found
No related merge requests found
The following contains a sample configuration and SMF manifest for running
resmon2 side by side with resmon1. The differences are:
resmon.conf => resmon2.conf
port 81 => port 82
/var/run/resmon-status.txt => /var/run/resmon2-status.txt
/opt/resmon => /opt/resmon2
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type='manifest' name='resmon2'>
<service
name='site/resmon2'
type='service'
version='1'>
<create_default_instance enabled='false' />
<single_instance />
<dependency
name='config-file'
grouping='require_all'
restart_on='refresh'
type='path'>
<service_fmri
value='file://localhost/opt/resmon2/resmon2.conf' />
</dependency>
<dependency
name='resmon2_multi-user-server'
grouping='require_all'
restart_on='none'
type='service'>
<service_fmri value='svc:/milestone/multi-user-server' />
</dependency>
<exec_method
type='method'
name='start'
exec='/opt/resmon2/resmon -c /opt/resmon2/resmon2.conf'
timeout_seconds='60' />
<exec_method
type='method'
name='stop'
exec=':kill'
timeout_seconds='60' />
<exec_method
type='method'
name='refresh'
exec=':kill -HUP'
timeout_seconds='60' />
<stability value='Unstable' />
<template>
<common_name>
<loctext xml:lang='C'>
Resmon
</loctext>
</common_name>
</template>
</service>
</service_bundle>
INTERVAL 60;
PORT 82;
STATUSFILE /var/run/resmon2-status.txt;
TIMEOUT 10;
Core::Resmon {
resmon : noop
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment