,anuals/Husdon: hudson.xml

File hudson.xml, 2.7 KB (added by tigran, 4 years ago)

svc config file

Line 
1<?xml version='1.0'?>
2<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
3
4<!--
5
6Copyright (C) 2007 Paul Oswald
7
8Permission is hereby granted, free of charge, to any person obtaining a copy
9of this software and associated documentation files (the "Software"), to deal
10in the Software without restriction, including without limitation the rights
11to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12copies of the Software, and to permit persons to whom the Software is
13furnished to do so, subject to the following conditions:
14
15The above copyright notice and this permission notice shall be included in
16all copies or substantial portions of the Software.
17
18THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24THE SOFTWARE.
25-->
26
27<service_bundle type="manifest" name="Hudson">
28        <service name="application/hudson" type="service" version="1">
29               
30                <!-- Initial state of the service is disabled -->
31                <create_default_instance enabled="false" />
32               
33                <!-- Only one instance of Hudson should ever run per server -->
34                <single_instance />
35               
36                <dependency name="multi-user-server" type="service" grouping="require_all" restart_on="none">
37                        <service_fmri value="svc:/milestone/multi-user-server" />
38                </dependency>
39
40                <method_context>
41                        <method_credential user='hudson' group='other' />
42                        <method_environment>
43                                <envvar name='PATH' value='/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/local/bin:/usr/local/sbin:/usr/sfw/bin' />
44                                <envvar name='HOME' value='/data/hudson-build' />
45                        </method_environment>
46                </method_context>
47
48                <!-- Set the HUDSON_HOME env variable, and run the war file in /apps/hudson/hudson.war -->
49                <exec_method type="method" name="start" exec="java -Xmx512m -jar /data/hudson-build/hudson.war --prefix=/build" timeout_seconds="0"/>
50                <exec_method type="method" name="stop" exec=":kill -TERM" timeout_seconds="30"/>
51
52                <!-- We are going to be kicking off a single child process so we want Wait mode-->
53                <property_group name='startd' type='framework'>
54                        <propval name='duration' type='astring' value='child' />
55                </property_group>
56
57                <stability value="Unstable" />
58
59                <template>
60                        <common_name>
61                                <loctext xml:lang='C'>Hudson Continuous Build Server</loctext>
62                        </common_name>
63                        <documentation>
64                                <doc_link name='hudson.dev.java.net' uri='http://hudson.dev.java.net' />
65                        </documentation>
66                </template>
67        </service>
68</service_bundle>