From 842c07db1eab28a010696a96b1a3b8880d6f2c76 Mon Sep 17 00:00:00 2001 From: heuzef Date: Tue, 16 Oct 2018 22:32:42 +0200 Subject: [PATCH] ... et rallumage si tout va bien --- scripts/check_services.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/check_services.sh b/scripts/check_services.sh index eedf956..36918ab 100755 --- a/scripts/check_services.sh +++ b/scripts/check_services.sh @@ -1,3 +1,7 @@ +#!/bin/bash +# Allo-GG +# Routine de verification de l'etat des services + if apache2 -v | head -n 1 | grep -q 'Server version: Apache/[0-9]' then echo "[OK] Apache" @@ -32,3 +36,6 @@ else gpio -g write 18 1 exit fi + +# Tout va bien ^_^ Allumage de la LED d'etat. +gpio -g write 18 0