Skip to content

Commit

Permalink
bringing tesla cereals and jetson setup scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
BogGyver authored and SippieCup committed Apr 18, 2020
1 parent d00341b commit 53ef8d2
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
1 change: 0 additions & 1 deletion cereal
Submodule cereal deleted from 65af43
5 changes: 5 additions & 0 deletions jetson/install-service.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sudo cp /data/openpilot/jetson/openpilot.service /etc/systemd/system/openpilot.service
sudo cp /data/openpilot/jetson/openpilot.logrotate /etc/logrotate.d/openpilot
sudo systemctl daemon-reload
sudo systemctl enable openpilot
sudo systemctl start openpilot
7 changes: 7 additions & 0 deletions jetson/openpilot.logrotate
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/var/log/openpilot.output.log /var/log/openpilot.error.log {
daily
missingok
rotate 0
nomail
nocreate
}
19 changes: 19 additions & 0 deletions jetson/openpilot.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[Unit]
Description=Tesla OpenPilot Driving Agent
DefaultDependencies=no

[Service]
Type=simple
Restart=always
RestartSec=10s
User=openpilot
Group=openpilot

WorkingDirectory=/data/openpilot/
StandardOutput=file:/var/log/openpilot.output.log
StandardError=file:/var/log/openpilot.error.log

ExecStart=/data/openpilot/start_op_jetson.sh
ExecStop=/usr/bin/killall -9 python
[Install]
WantedBy=multi-user.target

0 comments on commit 53ef8d2

Please sign in to comment.