diff --git a/deploy/groundstation.service b/deploy/groundstation.service new file mode 100644 index 0000000..b6a2cfc --- /dev/null +++ b/deploy/groundstation.service @@ -0,0 +1,14 @@ +[Unit] +Description=Ground Station RC and video supervisor +Wants=graphical.target +After=graphical.target display-manager.service + +[Service] +Type=simple +User=root +ExecStart=/usr/local/bin/groundstation -serial /dev/ttyS0 -video-by-aux2=true +Restart=always +RestartSec=2 + +[Install] +WantedBy=graphical.target