blob: d4177a7a0067abe752fb4545fa001b0459c253cd [file] [log] [blame]
Paul Jakmae28ebbc2017-03-07 15:25:44 +00001<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 This file is part of Quagga.
5 The contents of this file are released to the public domain.
6-->
7
8<!--
9 Solaris/Illumos SMF manifest file for buildbot slave/worker.
10
11 Usage:
12
13 - edit occurances of 'slave' to 'worker', if needed.
14 - install buildbot-slave or buildbot-worker:
15
16 pip install buildbot-slave
17
18 - create buildbot user and homedir, then:
19
20 cd ~buildbot && buildslave . <buildbot-master> <name> <passw>
21
22 - enable: svcadm enable buildbot-slave
23-->
24<service_bundle type='manifest' name='buildbot-slave'>
25
26<service
27 name='application/buildbot-slave'
28 type='service'
29 version='1'>
30
31 <create_default_instance enabled='true' />
32
33 <single_instance />
34
35 <dependency name='fslocal'
36 type='service'
37 grouping='require_all'
38 restart_on='none'>
39 <service_fmri value='svc:/system/filesystem/local:default' />
40 </dependency>
41 <dependency name='home'
42 type='service'
43 grouping='require_all'
44 restart_on='none'>
45 <service_fmri value='svc:/system/filesystem/autofs:default' />
46 </dependency>
47
48 <dependency name='net'
49 grouping='require_all'
50 restart_on='none'
51 type='service'>
52 <service_fmri value='svc:/milestone/network:default' />
53 </dependency>
54
55 <exec_method
56 type='method'
57 name='start'
58 exec='/usr/bin/buildslave start'
59 timeout_seconds='30'>
60 <method_context>
61 <method_credential user='buildbot' group='staff' />
62 </method_context>
63 </exec_method>
64
65 <exec_method
66 type='method'
67 name='stop'
68 exec='/usr/bin/buildslave stop'
69 timeout_seconds='60'>
70 <method_context>
71 <method_credential user='buildbot' group='staff' />
72 </method_context>
73 </exec_method>
74
75 <exec_method
76 type='method'
77 name='refresh'
78 exec='/usr/bin/buildslave restart'
79 timeout_seconds='60'>
80 <method_context>
81 <method_credential user='buildbot' group='buildbot' />
82 </method_context>
83 </exec_method>
84 <stability value='Unstable' />
85</service>
86</service_bundle>