root/cherokee/trunk/http-cherokee.xml.pre

Revision 4141, 3.0 kB (checked in by alo, 2 months ago)

New year, new copyright notice: 's/2009/2010/g'.

Line 
1 <?xml version="1.0"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3 <!--
4
5     Cherokee
6
7     Authors:
8          Rodrigo Fernandez-Vizarra <rodrigo.fernandez-vizarra@sun.com>
9
10     Copyright (C) 2006-2010 Alvaro Lopez Ortega
11
12     This program is free software; you can redistribute it and/or
13     modify it under the terms of version 2 of the GNU General Public
14     License as published by the Free Software Foundation.
15
16     This program is distributed in the hope that it will be useful,
17     but WITHOUT ANY WARRANTY; without even the implied warranty of
18     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19     GNU General Public License for more details.
20
21     You should have received a copy of the GNU General Public License
22     along with this program; if not, write to the Free Software
23     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
24     USA
25 -->
26
27 <service_bundle type='manifest' name='cherokee'>
28   <service name='network/http' type='service' version='1'>
29
30
31     <!--
32         Cherokee is an instance of the network/http service, it
33         is not enabled by default.
34     -->
35     <instance name='cherokee' enabled='false'>
36
37
38       <!--
39           Cherokee dependencies
40       -->
41       <dependency name='loopback'
42                   grouping='require_all'
43                   restart_on='error'
44                   type='service'>
45
46         <service_fmri value='svc:/network/loopback:default'/>
47
48       </dependency>
49
50       <dependency name='physical'
51                   grouping='optional_all'
52                   restart_on='error'
53                   type='service'>
54         <service_fmri value='svc:/network/physical:default'/>
55       </dependency>
56
57
58       <!--
59           start method
60       -->
61       <exec_method type='method'
62                    name='start'
63                    exec='%prefix%/sbin/cherokee -d'
64                    timeout_seconds='60'>
65         <method_context>
66           <method_credential user='root' group='root' />
67         </method_context>
68       </exec_method>
69
70
71       <!--
72           stop method
73       -->
74       <exec_method type='method'
75                    name='stop'
76                    exec='kill `cat %localstatedir%/run/cherokee.pid`'
77                    timeout_seconds='60'>
78         <method_context>
79           <method_credential user='root' group='root' />
80         </method_context>
81       </exec_method>
82
83
84       <!--
85           resstart method
86       -->
87       <exec_method type='method'
88                    name='refresh'
89                    exec='kill -HUP `cat %localstatedir%/run/cherokee.pid`'
90                    timeout_seconds='60'>
91         <method_context>
92           <method_credential user='root' group='root' />
93         </method_context>
94       </exec_method>
95
96       <property_group name='startd' type='framework'>
97         <propval name='duration' type='astring' value='contract'/>
98         <propval name='ignore_error' type='astring' value='core,signal' />
99       </property_group>
100
101     </instance>
102
103     <!--
104         Describe the service
105     -->
106     <template>
107       <common_name>
108         <loctext xml:lang='C'>
109           A flexible, very fast, lightweight Web server.
110         </loctext>
111         <loctext xml:lang='es'>
112           Un servidor web, ligero, flexible y muy rapido.
113         </loctext>
114       </common_name>
115       <documentation>
116         <doc_link name='www.cherokee-project.com' uri='http://www.cherokee-project.com/doc' />
117       </documentation>
118     </template>
119   </service>
120 </service_bundle>
Note: See TracBrowser for help on using the browser.