File: http-cherokee.xml

package info (click to toggle)
cherokee 0.7.2-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 8,808 kB
  • ctags: 6,577
  • sloc: ansic: 45,071; python: 9,628; sh: 9,468; makefile: 1,639; xml: 61; perl: 32
file content (120 lines) | stat: -rw-r--r-- 3,132 bytes parent folder | download
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--

    Cherokee

    Authors:
         Rodrigo Fernandez-Vizarra <rodrigo.fernandez-vizarra@sun.com>

    Copyright (C) 2006-2007 Alvaro Lopez Ortega
    
    This program is free software; you can redistribute it and/or
    modify it under the terms of version 2 of the GNU General Public
    License as published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
    USA
-->

<service_bundle type='manifest' name='cherokee'>
  <service name='network/http' type='service' version='1'>


    <!--
	Cherokee is an instance of the network/http service, it
	is not enabled by default.
    -->
    <instance name='cherokee' enabled='false'>    


      <!--
	  Cherokee dependencies
      -->
      <dependency name='loopback'
		  grouping='require_all' 
		  restart_on='error'
		  type='service'>
	
	<service_fmri value='svc:/network/loopback:default'/>
	
      </dependency>
      
      <dependency name='physical'
		  grouping='optional_all'
		  restart_on='error'
		  type='service'>
	<service_fmri value='svc:/network/physical:default'/>
      </dependency>
      

      <!--
	  start method
      -->
      <exec_method type='method'
		   name='start'
		   exec='/usr/sbin/cherokee -b'
		   timeout_seconds='60'>
	<method_context>
	  <method_credential user='root' group='root' />
	</method_context>
      </exec_method>
      
      
      <!--
	  stop method
      -->
      <exec_method type='method'
		   name='stop'
		   exec='kill `cat /var/run/cherokee.pid`'
		   timeout_seconds='60'>
	<method_context>
	  <method_credential user='root' group='root' />
	</method_context>
      </exec_method>
      
      
      <!--
	  resstart method
      -->
      <exec_method type='method'
		   name='refresh'
		   exec='kill -HUP `cat /var/run/cherokee.pid`'
		   timeout_seconds='60'>
	<method_context>
	  <method_credential user='root' group='root' />
	</method_context>
      </exec_method>
      
      <property_group name='startd' type='framework'>
	<propval name='duration' type='astring' value='contract'/>
	<propval name='ignore_error' type='astring' value='core,signal' />
      </property_group>      

    </instance>
    
    <!--
	Describe the service
    -->
    <template>
      <common_name>
	<loctext xml:lang='C'>
	  A flexible, very fast, lightweight Web server.
	</loctext>
	<loctext xml:lang='es'>
	  Un servidor web, ligero, flexible y muy rapido.
	</loctext>
      </common_name>
      <documentation>
	<doc_link name='www.cherokee-project.com' uri='http://www.cherokee-project.com/doc' />
      </documentation>
    </template>
  </service>
</service_bundle>