Checkin of 0.2.98 upstream source
[time-slider.git] / var / svc / manifest / application / time-slider.xml
1 <?xml version="1.0"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3 <!--
4     CDDL HEADER START
5
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.
9
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.
14
15     CDDL HEADER END
16
17     Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
18     Use is subject to license terms.
19
20     NOTE:  This service manifest is not editable; its contents will
21     be overwritten by package or patch operations, including
22     operating system upgrade.  Make customizations in a different
23     file.
24 -->
25
26 <service_bundle type='manifest' name='SUNWgnome-time-slider'>
27
28 <service
29         name='application/time-slider'
30         type='service'
31         version='0.2.95'>
32
33         <!-- This is the time-slider snapshot management service
34              which is a simple monitor and configuration synchr-
35              oniser for:
36              svc:/system/filesystem/zfs/auto-snapshot:<schedule>
37              instances. It combines these services to provide a
38              useful range of snapshots for a stand alone system.
39         -->
40
41         <create_default_instance enabled='false' />
42
43         <single_instance />
44
45         <!-- we need to be multi-user  -->
46         <dependency
47                 name='multi-user'
48                 grouping='require_all'
49                 restart_on='none'
50                 type='service'>
51                 <service_fmri value='svc:/milestone/multi-user' />
52         </dependency>
53
54     <!-- These are the service instances that specify
55          snapshot taking parameters
56
57         <dependency
58                 name='auto-snapshot-svcs'
59                 type='service'
60                 grouping='optional_all'
61                 restart_on='refresh'>
62                 <service_fmri value='svc:/system/filesystem/zfs/auto-snapshot:frequent' />
63                 <service_fmri value='svc:/system/filesystem/zfs/auto-snapshot:hourly' />
64                 <service_fmri value='svc:/system/filesystem/zfs/auto-snapshot:daily' />
65                 <service_fmri value='svc:/system/filesystem/zfs/auto-snapshot:weekly' />
66                 <service_fmri value='svc:/system/filesystem/zfs/auto-snapshot:monthly' />
67         </dependency>
68     -->
69         <exec_method
70                 type='method'
71                 name='start'
72                 exec='/lib/svc/method/time-slider start'
73                 timeout_seconds='60'>
74                 <method_context>
75                         <method_credential user='zfssnap' group='daemon' />
76                 </method_context>
77         </exec_method>
78
79         <exec_method
80                 type='method'
81                 name='stop'
82                 exec=':kill'
83                 timeout_seconds='60'>
84                 <method_context>
85                         <method_credential user='zfssnap' group='daemon' />
86                 </method_context>
87         </exec_method>
88
89         <exec_method
90                 type='method'
91                 name='refresh'
92                 exec=':kill -HUP'
93                 timeout_seconds='60'>
94                 <method_context>
95                         <method_credential user='zfssnap' group='daemon' />
96                 </method_context>
97         </exec_method>
98
99         <property_group name='startd' type='framework'>
100                 <propval name='duration' type='astring'
101                         value='contract' />
102         </property_group>
103
104         <property_group name='general' type='framework'>
105                 <propval name='action_authorization' type='astring'
106                         value='solaris.smf.manage.zfs-auto-snapshot' />
107                 <propval name='value_authorization' type='astring'
108                         value='solaris.smf.manage.zfs-auto-snapshot' />
109         </property_group>
110
111         <property_group name='daemon' type='application'>
112                 <propval name='verbose' type='boolean' value='false'
113                    override='true'/>
114                 <propval name='value_authorization' type='astring'
115                         value='solaris.smf.manage.zfs-auto-snapshot' />
116         </property_group>
117
118         <property_group name='zfs' type='application'>
119                 <propval name='custom-selection' type='boolean' value='false'
120             override='true'/>
121         <propval name='keep-empties' type='boolean' value='false'
122             override='true'/>
123         <!--
124         sep:    Set to '_' by default, this is the character used to
125         separate datestamps used in snapshot names.
126         -->
127         <propval name='sep' type='astring' value='_'
128             override='true'/>
129                 <propval name='value_authorization' type='astring'
130                         value='solaris.smf.manage.zfs-auto-snapshot' />
131         </property_group>
132
133         <property_group name='zpool' type='application'>
134             <propval name='remedial-cleanup' type='boolean' value='true'
135                 override='true'/>
136                 <propval name='warning-level' type='integer' value='80'
137             override='true'/>
138                 <propval name='critical-level' type='integer' value='90'
139             override='true'/>
140                 <propval name='emergency-level' type='integer' value='95'
141             override='true'/>
142                 <propval name='value_authorization' type='astring'
143                         value='solaris.smf.manage.zfs-auto-snapshot' />
144         </property_group>
145         
146         <stability value='Unstable' />
147
148         <template>
149                 <common_name>
150                         <loctext xml:lang='C'>GNOME Desktop Snapshot Management Service
151                                 </loctext>
152                 </common_name>
153
154                 <documentation>
155                         <manpage
156                                 title='zfs'
157                                 section='1M'
158                                 manpath='/usr/share/man' />
159                 </documentation>
160         </template>
161 </service>
162
163 </service_bundle>