-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathzv.conf
More file actions
executable file
·39 lines (30 loc) · 1 KB
/
zv.conf
File metadata and controls
executable file
·39 lines (30 loc) · 1 KB
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
# zv - zebravision job file
description "2016 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 /mnt/900_2
# Run before process
pre-start script
sleep 5
/home/ubuntu/2016VisionCode/set_freq_tx.sh
/home/ubuntu/2016VisionCode/set_freq_tx.sh
mount -o data=journal,noatime /dev/sda1 /mnt/900_2 || true
ifup eth0 || true
end script
# Start the process
# --batch to not bring up the gui
# --capture to save the raw video/depth info to disk
exec /home/ubuntu/2016VisionCode/bindetection/zv --batch --no-detection --capture