summaryrefslogtreecommitdiff
path: root/packaging.in/ambd.conf.upstart
blob: ebec00567f3b5c6e2f9fee9e7d9c9c2c191e31d3 (plain)
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
# ambd - ambd job file

description "ambd service"
author "Me <myself@i.com>"

# Stanzas
#
# Stanzas control when and how a process is started and stopped
# See a list of stanzas here: http://upstart.ubuntu.com/wiki/Stanzas#respawn

start on stopped rc
stop on stopping bluetooth

# Automatically restart process if crashed
respawn

# Essentially lets upstart know the process will detach itself to the background
expect fork

# Run before process
pre-start script
end script

# Start the process
exec ambd -c /etc/ambd/config.tripzero -l /home/ubuntu/ambd.log -D -d5