-
Notifications
You must be signed in to change notification settings - Fork 0
/
http-yaws.xml
101 lines (84 loc) · 2.35 KB
/
http-yaws.xml
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
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type='manifest' name='yaws'>
<service
name='network/http'
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='network-service'
grouping='require_all'
restart_on='none'
type='service'>
<service_fmri value='svc:/network/service' />
</dependency>
<dependency
name='name-services'
grouping='require_all'
restart_on='refresh'
type='service'>
<service_fmri value='svc:/milestone/name-services' />
</dependency>
<instance name='yaws' enabled='false'>
<dependency
name='config-file'
grouping='require_all'
restart_on='refresh'
type='path'>
<service_fmri
value='file://localhost/etc/yaws/yaws.conf' />
</dependency>
<exec_method
type='method'
name='start'
exec='/lib/svc/method/http-yaws start'
timeout_seconds='10'>
<method_context>
<method_credential user='webservd' group='webservd' privileges="basic,net_privaddr" />
</method_context>
</exec_method>
<exec_method
type='method'
name='stop'
exec='/lib/svc/method/http-yaws stop'
timeout_seconds='10'>
<method_context>
<method_credential user='webservd' group='webservd' />
</method_context>
</exec_method>
<exec_method
type='method'
name='refresh'
exec='/lib/svc/method/http-yaws refresh'
timeout_seconds='10'>
<method_context>
<method_credential user='webservd' group='webservd' />
</method_context>
</exec_method>
<property_group name='options' type='application'>
<propval name='io_pipe_name' type='astring' value='svc' />
<propval name='mnesia_dir' type='astring' value='' />
</property_group>
<template>
<common_name>
<loctext xml:lang='C'>
Yet Another Web Server
</loctext>
</common_name>
<documentation>
<manpage title='yaws' section='1M'
manpath='/usr/share/man' />
</documentation>
</template>
</instance>
<stability value='Unstable' />
</service>
</service_bundle>