# Gadget Drone Worker — Systemd User Service Unit # ============================================================================ # Install as a USER service for solo developers running drones on their # own workstations. # # Install to: ~/.config/systemd/user/gadget-drone.service # # Then: # systemctl --user daemon-reload # systemctl --user enable gadget-drone # systemctl --user start gadget-drone # # Start at login: # loginctl enable-linger $USER # # View logs: # journalctl --user -u gadget-drone -f # ============================================================================ [Unit] Description=Gadget Drone Worker Documentation=https://github.com/dtp-technologies/gadget-code After=network.target [Service] Type=simple # The drone runs from the user's chosen workspace directory. # Update this path to match your setup. WorkingDirectory=%h/gadget-workspace ExecStart=%h/.local/bin/gadget-drone Restart=on-failure RestartSec=5 # Resource limits LimitNOFILE=65536 # Logging StandardOutput=journal StandardError=journal SyslogIdentifier=gadget-drone [Install] WantedBy=default.target