From 2ac0ddce13aed4288472b53c856ddd8a604de5f9 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 29 Jan 2018 20:02:38 +0100 Subject: [PATCH] updated service file: now removes the .lock file on stop --- sats-debug@.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sats-debug@.service b/sats-debug@.service index 0c28873..a93fd9f 100644 --- a/sats-debug@.service +++ b/sats-debug@.service @@ -9,5 +9,7 @@ ExecStartPre=-/usr/bin/git clone --recursive -b master ssh://smmp-server/satsd/d ExecStartPre=-/usr/bin/git -C /home/pi/debug pull origin master ExecStart=/bin/bash /home/pi/debug/sats/main %i +ExecStop=-/bin/rm /home/pi/debug/sats/.lock + [Install] WantedBy=multi-user.target \ No newline at end of file