Browse Source

desactivation du MTA pour cron

master
heuzef 5 years ago
parent
commit
541f8b9758
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      install.sh
  2. +1
    -0
      scripts/check_services.sh

+ 1
- 0
install.sh View File

@@ -67,6 +67,7 @@ echo "" >> /etc/rc.local
echo "exit 0" >> /etc/rc.local echo "exit 0" >> /etc/rc.local


# Mise en place de la routine de verification de l'etat des services # 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 '*/20 * * * * allo-gg /var/www/html/scripts/check_services.sh > /dev/null' | crontab -u allo-gg -


echo echo


+ 1
- 0
scripts/check_services.sh View File

@@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
# Allo-GG # Allo-GG
# Routine de verification de l'etat des services # Routine de verification de l'etat des services
gpio -g write 18 1


# LOG2RAM # LOG2RAM
if mount | grep -q 'log2ram on /var/log type tmpfs' if mount | grep -q 'log2ram on /var/log type tmpfs'


Loading…
Cancel
Save