diff --git a/install.sh b/install.sh index 4842b18..b5d9422 100755 --- a/install.sh +++ b/install.sh @@ -67,6 +67,7 @@ echo "" >> /etc/rc.local echo "exit 0" >> /etc/rc.local # Mise en place de la routine de verification de l'etat des services +echo 'MAILTO=""' | crontab -u allo-gg - echo '*/20 * * * * allo-gg /var/www/html/scripts/check_services.sh > /dev/null' | crontab -u allo-gg - echo diff --git a/scripts/check_services.sh b/scripts/check_services.sh index 02a3793..69e045e 100755 --- a/scripts/check_services.sh +++ b/scripts/check_services.sh @@ -1,6 +1,7 @@ #!/bin/bash # Allo-GG # Routine de verification de l'etat des services +gpio -g write 18 1 # LOG2RAM if mount | grep -q 'log2ram on /var/log type tmpfs'