nrpe: update to 4.1.3
[oi-userland.git] / components / sysutils / upower / files / upower.xml
blobdf4620d8c21561b5e5c2c7f4d53f6f89ebbcfcf2
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3 <!--
4  CDDL HEADER START
6  The contents of this file are subject to the terms of the
7  Common Development and Distribution License (the "License").
8  You may not use this file except in compliance with the License.
10  You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11  or http://www.opensolaris.org/os/licensing.
12  See the License for the specific language governing permissions
13  and limitations under the License.
15  When distributing Covered Code, include this CDDL HEADER in each
16  file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17  If applicable, add the following below this CDDL HEADER, with the
18  fields enclosed by brackets "[]" replaced with your own identifying
19  information: Portions Copyright [yyyy] [name of copyright owner]
21  CDDL HEADER END
23         NOTE:  This service manifest is not editable; its contents will
24         be overwritten by package or patch operations, including
25         operating system upgrade.  Make customizations in a different
26         file.
28         Service manifest for the DNSCrypt proxy service.
29 -->
30 <!--
31     Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
32     Copyright 2018 Alexander Pyhalov
33 -->
34 <service_bundle type='manifest' name='upower'>
36 <service name='system/upower' type='service' version='1'>
38         <create_default_instance enabled='true' />
40         <single_instance />
42         <dependency name='usr'
43                 type='service'
44                 grouping='require_all'
45                 restart_on='none'>
46                 <service_fmri value='svc:/system/filesystem/minimal' />
47         </dependency>
49         <dependency
50                 name='devices'
51                 grouping='require_all'
52                 restart_on='none'
53                 type='service'>
54                 <service_fmri value='svc:/system/device/local' />
55         </dependency>
57         <dependency name='dbus'
58                 type='service'
59                 grouping='require_all'
60                 restart_on='none'>
61                 <service_fmri value='svc:/system/dbus' />
62         </dependency>
64         <dependency name='sysevent'
65                 type='service'
66                 grouping='require_all'
67                 restart_on='none'>
68                 <service_fmri value='svc:/system/sysevent' />
69         </dependency>
71         <exec_method type='method' name='start' 
72                 exec='/usr/lib/upowerd &amp;' timeout_seconds='60'>
73                 <method_context>
74                         <method_credential
75                                 user='root' group='root' 
76                         />
77                 </method_context>
78         </exec_method>
79         
80         <exec_method type='method' name='stop' exec=':kill' 
81                 timeout_seconds='60'/>
83         <exec_method type='method' name='refresh' exec=':kill -HUP' 
84                 timeout_seconds='30'/>
85         
86         <template>
87                 <common_name>
88                         <loctext xml:lang='C'>
89                                 UPower Daemon
90                         </loctext>
91                 </common_name>
92                 <documentation>
93                         <manpage title='upowerd' section='8'
94                                 manpath='/usr/share/man'/>
95                 </documentation>
96         </template>
97 </service>
99 </service_bundle>