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

15
client.service Normal file
View File

@ -0,0 +1,15 @@
[Unit]
Description=Python Sorting Client
After=network.target auditd.service media-writable.mount
Requires=media-writable.mount
[Service]
ExecStart=/media/writable/item-sort/pi_client.py
Restart=always
Type=idle
User=root
StartLimitIntervalSec=0
RestartSec=5
WorkingDirectory=/media/writable/item-sort
[Install]
WantedBy=multi-user.target