From 1ded9de8064f17025c6d50d459b0ac97edf66184 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 5 May 2020 21:09:58 -0400 Subject: [PATCH] Update cubesatsim.service --- systemd/cubesatsim.service | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/systemd/cubesatsim.service b/systemd/cubesatsim.service index 3da1a46e..633f689d 100644 --- a/systemd/cubesatsim.service +++ b/systemd/cubesatsim.service @@ -1,8 +1,10 @@ [Unit] -Description=My service +Description=CubeSatSim demo service [Service] -ExecStart=/home/pi/CubeSatSim/demo.sh > /home/pi/CubeSatSim/log.txt 2>&1 +TimeoutStopSec=5 +EnvironmentFile=/home/pi/CubeSatSim/.mode +ExecStart=/home/pi/CubeSatSim/demo.sh $ARG1 WorkingDirectory=/home/pi/CubeSatSim StandardOutput=inherit StandardError=inherit