summaryrefslogtreecommitdiff
path: root/startup-scripts/downtimed.smf.xml
blob: 0d15a4b05e22aa1f1d8bde0b244204c1329615b0 (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
<?xml version="1.0" encoding="iso-8859-1" ?>

<!DOCTYPE service_bundle SYSTEM
	"/usr/share/lib/xml/dtd/service_bundle.dtd.1">

<!--
    SMF Manifest for downtimed.

    Copyright 2012 Mats Erik Andersson. All rights reserved.
    Licensed as 2-clause BSD license, identical to the text
    used by downtimed-0.5.
-->

<service_bundle type="manifest" name="downtimed">
	<service
		name="system/downtimed"
		type="service"
		version="1">
		<single_instance />
		<dependency
			name="usr"
			type="service"
			grouping="require_all"
			restart_on="none">
			<service_fmri value="svc:/system/filesystem/local" />
		</dependency>
		<exec_method
			type="method"
			name="start"
			exec="/usr/local/sbin/downtimed"
			timeout_seconds="15">
			<method_context>
				<method_credential user="root" group="root" />
			</method_context>
		</exec_method>
		<exec_method
			type="method"
			name="stop"
			exec=":kill"
			timeout_seconds="5" />
		<instance name="default" enabled="true" />
		<stability value="Unstable" />

		<template>
			<common_name>
				<loctext xml:lang="C">
					downtime cronograph
				</loctext>
			</common_name>
			<documentation>
				<manpage title="downtimed" section="8" manpath="/usr/local/share/man" />
				<manpage title="downtimes" section="1" manpath="/usr/local/share/man" />
			</documentation>
		</template>
	</service>
</service_bundle>