4 # This file and its contents are supplied under the terms of the
5 # Common Development and Distribution License ("CDDL"), version 1.0.
6 # You may only use this file in accordance with the terms of version
9 # A full copy of the text of the CDDL should have accompanied this
10 # source. A copy of the CDDL is also available via the Internet at
11 # http://www.illumos.org/license/CDDL.
15 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
18 # Copyright 2016 Jim Klimov
22 <service_bundle type='manifest' name='nut-client'>
24 <service name='system/power/nut-client' type='service' version='1'>
27 Configure a default instance for the service since it doesn't
28 require additional configuration intervention before it starts.
30 <create_default_instance enabled='false' />
33 Wait for all local and usr filesystem to be mounted - project is
39 grouping='require_all'
41 <service_fmri value='svc:/system/filesystem/local' />
46 grouping='require_all'
50 value='svc:/system/filesystem/usr:default'/>
54 Wait for syslog to be started in order to write system
55 messages from the kernel.
59 grouping='optional_all'
63 value='svc:/system/system-log:default'/>
67 Wait for network to be started in order to reach remote hosts.
70 name='network-service'
71 grouping='optional_all'
74 <service_fmri value='svc:/network/service' />
78 Wait for NUT upsd to be started, if it's enabled
82 grouping='optional_all'
85 <service_fmri value='svc:/system/power/nut' />
89 The nut start/stop methods.
95 exec='/lib/svc/method/svc-nut-client %m'
96 timeout_seconds='60'/>
102 timeout_seconds='60' />
104 <property_group name='startd' type='framework'>
106 Sub-process core dumps and external kill signals are not
107 considered errors, so the service should be restarted.
109 <propval name='ignore_error' type='astring'
110 value='core,signal' />
113 <!-- Really unstable - this service should be evolved! -->
114 <stability value='Unstable' />
118 <loctext xml:lang='C'>
119 NUT ups monitoring service
123 <manpage title='upsmon' section='8'
124 manpath='/usr/share/man' />
125 <manpage title='upsmon.conf' section='5'
126 manpath='/usr/share/man' />