Move imports to after connection, add service files to pi

This commit is contained in:
Cole Deck
2020-05-18 15:49:04 -05:00
parent dbde062909
commit 052ea30f73
10 changed files with 70 additions and 15 deletions

13
camera.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=UDP Camera Stream
After=network.target auditd.service media-writable.mount
Requires=media-writable.mount
[Service]
ExecStart=/media/writable/run.sh
Restart=always
Type=idle
User=pi
[Install]
WantedBy=multi-user.target