summaryrefslogtreecommitdiffstats
path: root/startup/solaris-init.xml.in
diff options
context:
space:
mode:
Diffstat (limited to 'startup/solaris-init.xml.in')
-rw-r--r--startup/solaris-init.xml.in143
1 files changed, 143 insertions, 0 deletions
diff --git a/startup/solaris-init.xml.in b/startup/solaris-init.xml.in
new file mode 100644
index 0000000..e4ff84c
--- /dev/null
+++ b/startup/solaris-init.xml.in
@@ -0,0 +1,143 @@
+<?xml version="1.0"?>
+<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
+
+<!--
+ Copyright (c) 2016 Nagios(R) Core(TM) Development Team
+-->
+
+<service_bundle type='manifest' name='NGOS:nrpe'>
+
+ <service
+ name='network/nagios/nrpe'
+ type='service'
+ version='1'>
+
+ <single_instance />
+
+ <dependency
+ name='fs-local'
+ grouping='require_all'
+ restart_on='none'
+ type='service'>
+ <service_fmri value='svc:/system/filesystem/local' />
+ </dependency>
+
+ <dependency
+ name='autofs'
+ grouping='optional_all'
+ restart_on='none'
+ type='service'>
+ <service_fmri value='svc:/system/filesystem/autofs' />
+ </dependency>
+
+ <dependency
+ name='net-loopback'
+ grouping='require_all'
+ restart_on='none'
+ type='service'>
+ <service_fmri value='svc:/network/loopback' />
+ </dependency>
+
+ <dependency
+ name='net-physical'
+ grouping='require_all'
+ restart_on='none'
+ type='service'>
+ <service_fmri value='svc:/network/physical' />
+ </dependency>
+
+ <dependency
+ name='cryptosvc'
+ grouping='require_all'
+ restart_on='none'
+ type='service'>
+ <service_fmri value='svc:/system/cryptosvc' />
+ </dependency>
+
+ <dependency
+ name='utmp'
+ grouping='require_all'
+ restart_on='none'
+ type='service'>
+ <service_fmri value='svc:/system/utmp' />
+ </dependency>
+
+ <dependency
+ name='config_data'
+ grouping='require_all'
+ restart_on='restart'
+ type='path'>
+ <service_fmri
+ value='file://localhost@sysconfdir@/nrpe.cfg' />
+ </dependency>
+
+ <dependency
+ name='system-log'
+ grouping='optional_all'
+ restart_on='none'
+ type='service'>
+ <service_fmri value='svc:/system/system-log' />
+ </dependency>
+
+ <dependent
+ name='nrpe_multi-user-server'
+ grouping='optional_all'
+ restart_on='none'>
+ <service_fmri value='svc:/milestone/multi-user-server'/>
+ </dependent>
+
+ <exec_method
+ type='method'
+ name='start'
+ exec='@sbindir@/nrpe -c @pkgsysconfdir@/nrpe.cfg -d'
+ timeout_seconds='5'>
+ <method_context>
+ <method_credential user='@nrpe_user@' group='@nrpe_group@'/>
+ </method_context>
+ </exec_method>
+
+ <exec_method
+ type='method'
+ name='stop'
+ exec=':kill'
+ timeout_seconds='60'/>
+
+ <exec_method
+ type='method'
+ name='refresh'
+ exec=':hup'
+ timeout_seconds='60'/>
+
+ <property_group name='startd' type='framework'>
+ <propval name='ignore_error' type='astring' value='core,signal'/>
+ </property_group>
+
+ <property_group name='general' type='framework'>
+ <propval name='enabled' type='boolean' value='false'/>
+ <propval name='action_authorization' type='astring'
+ value='solaris.smf.manage.nrpe'/>
+ <propval name='value_authorization' type='astring'
+ value='solaris.smf.manage.nrpe'/>
+ </property_group>
+
+ <instance name='default' enabled='false' />
+
+ <stability value='Unstable' />
+
+ <template>
+ <common_name>
+ <loctext xml:lang="C">NRPE daemon</loctext>
+ </common_name>
+ <description>
+ <loctext xml:lang="C">
+ Nagios Remote Plugin Executor daemon
+ </loctext>
+ </description>
+ <documentation>
+ <doc_link name='nagios.org' uri='http://www.nagios.org' />
+ </documentation>
+ </template>
+
+ </service>
+
+</service_bundle>