Update project structure
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Arm Server (TCP 5002 + Camera 5003)
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=pi
|
||||
WorkingDirectory=/home/pi/work/arm_server
|
||||
ExecStartPre=/bin/sleep 5
|
||||
ExecStart=/usr/bin/python3 /home/pi/work/arm_server/arm_server.py
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
StandardOutput=append:/home/pi/work/arm_server/stdout.log
|
||||
StandardError=append:/home/pi/work/arm_server/stderr.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user