[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