Files
smart-inspection/arm_server/arm_server.service
T

20 lines
572 B
Desktop File

[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/smart-inspection/arm_server
Environment=PATH=/home/pi/.local/bin:/usr/local/bin:/usr/bin:/bin
ExecStartPre=/bin/sleep 5
ExecStart=/usr/bin/env uv run --locked python arm_server.py
Restart=on-failure
RestartSec=5
StandardOutput=append:/home/pi/work/smart-inspection/arm_server/stdout.log
StandardError=append:/home/pi/work/smart-inspection/arm_server/stderr.log
[Install]
WantedBy=multi-user.target