From 541f8b9758499fcb58bf32b20fefc0fb5fd2b111 Mon Sep 17 00:00:00 2001 From: heuzef Date: Sun, 27 Jan 2019 17:37:52 +0100 Subject: [PATCH] desactivation du MTA pour cron --- install.sh | 1 + scripts/check_services.sh | 1 + 2 files changed, 2 insertions(+) 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'