diff --git a/systemd/demo.service b/systemd/demo.service new file mode 100644 index 00000000..2486a4ce --- /dev/null +++ b/systemd/demo.service @@ -0,0 +1,15 @@ + +[Unit] +Description=Test service + +[Service] +EnvironmentFile=/home/pi/CubeSatSim/.progconfig +ExecStart=/home/pi/CubeSatSim/demo.sh $ARG1 +WorkingDirectory=/home/pi/CubeSatSim +StandardOutput=inherit +StandardError=inherit +Restart=always +User=root + +[Install] +WantedBy=default.target