generated from CubeCraft-Creations/Tracehound
feat: add Pi provisioning, systemd service, and deploy scripts
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
[Unit]
|
||||
Description=RemoteRig Central Hub
|
||||
Documentation=https://github.com/CubeCraft-Creations/remote-rig
|
||||
After=network.target mosquitto.service
|
||||
Wants=mosquitto.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=pi
|
||||
WorkingDirectory=/opt/remoterig
|
||||
ExecStart=/opt/remoterig/remoterig
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
# Security hardening (optional, uncomment to enable)
|
||||
# NoNewPrivileges=yes
|
||||
# ProtectSystem=strict
|
||||
# ProtectHome=yes
|
||||
# ReadWritePaths=/opt/remoterig
|
||||
|
||||
# Allow graceful shutdown
|
||||
TimeoutStopSec=10s
|
||||
KillMode=mixed
|
||||
KillSignal=SIGTERM
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user