Add Supercheck

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1679 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-08-08 07:49:49 +00:00
parent 01afb2b0b7
commit 3e1942445f
4 changed files with 11 additions and 0 deletions

7
supercheck Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
if [ ! -f "/tmp/check.heartbeat" ] || [ `stat -c "%Y" "/tmp/check.heartbeat"` -lt `date -d '12 hours ago' '+%s'` ]; then
echo "### Check est désactivé ! ###"
echo "Pour supprimer cet avertissement, commenter la ligne dans le fichier "
echo "/etc/cron.d/supercheck"
fi