-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathzv.conf
executable file
·41 lines (32 loc) · 1012 Bytes
/
zv.conf
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
# zv - zebravision job file
description "2015 Vision Code auto-start script"
author "Team900 <programmers@team900.org>"
# 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
# When to start the service
#start on runlevel [2345]
start on filesystems
#start on mounted MOUNTPOINT=/media/ubuntu/Video
# When to stop the service
stop on runlevel [016]
# Automatically restart process if crashed
respawn
# Essentially lets upstart know the process will detach itself to the background
#expect fork
chdir /media/ubuntu/Video1
# Run before process
pre-start script
#until [ -e "/media/ubuntu/Video1" ]
#do
# echo "Pausing until directory mounted"
# sleep 1
#done
/home/ubuntu/2015VisionCode/set_freq.sh
end script
# Start the process
# -1 to use Zed camera
# --batch to not bring up the gui
# --capture to save the raw video to disk
exec /home/ubuntu/2015VisionCode/bindetection/test --batch --capture -1