summaryrefslogtreecommitdiffstats
path: root/startup/solaris-init.xml.in
blob: e4ff84cad7799c78dfb4c5d14f8e388144cb045b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
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>