Subversion Repositories DevTools

Rev

Rev 4123 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4123 dpurdie 1
# buildtool - Upstart job file for the VIX buildtool
2
 
3
description "JATS Build Daemon"
4
author "dpurdie"
5
 
6
# When to start the service
7
start on autofs
8
 
9
# When to stop the service
10
stop on runlevel [016]
11
 
12
# Automatically restart process if crashed
13
respawn
14
 
15
# Essentially lets upstart know the process will detach itself to the background
16
#expect fork
17
 
18
# Specify the user
19
setuid buildadm
20
setgid ccperdev
21
env USER=buildadm
22
env HOME=/home/buildadm
23
 
24
# Start the process
25
script
26
    exec 2>/tmp/buildtool 1>&2
27
    . /etc/profile
28
    unset GBE_PLATFORM
29
    jats vars -v
30
    jats -NoExportVars eprog /home/buildadm/buildtool/abtlaunch
31
end script    
32