From f8561155dc45865e0bb22a6e32806c95edeab51c Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 3 May 2020 15:45:43 -0400 Subject: [PATCH] creating test.service to try passing command line arguments to service --- systemd/test.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 systemd/test.service diff --git a/systemd/test.service b/systemd/test.service new file mode 100644 index 00000000..20510db2 --- /dev/null +++ b/systemd/test.service @@ -0,0 +1,14 @@ +[Unit] +Description=Test service + +[Service +Environment="SCRIPT_ARGS=%I" +ExecStart=/home/pi/CubeSatSim/radioafsk $SCRIPT_ARGS +WorkingDirectory=/home/pi/CubeSatSim +StandardOutput=inherit +StandardError=inherit +Restart=always +User=root + +[Install] +WantedBy=default.target