From ca407e8571b964ed2dfb293f3bac67053c50bef9 Mon Sep 17 00:00:00 2001 From: zabeth18 Date: Wed, 11 Mar 2020 17:08:06 +0000 Subject: [PATCH] modification script pour fonctionner avec ansible --- raspberry/lancer.sh | 5 +++++ raspberry/script.sh | 3 +++ 2 files changed, 8 insertions(+), 0 deletions(-) create mode 100644 raspberry/lancer.sh diff --git a/raspberry/lancer.sh b/raspberry/lancer.sh new file mode 100644 index 0000000..64d0921 --- /dev/null +++ b/raspberry/lancer.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +kill $(cat /var/run/script.pid) +base=`dirname $0` +nohup $base/script.sh & diff --git a/raspberry/script.sh b/raspberry/script.sh index b747ffc..39734d5 100755 --- a/raspberry/script.sh +++ b/raspberry/script.sh @@ -1,4 +1,7 @@ #!/bin/sh + +echo $$ > /var/run/script.pid + ./load.sh while true do -- libgit2 0.21.2