Subversion Repositories ALCASAR

Rev

Rev 1841 | Rev 1852 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1841 Rev 1851
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1841 2016-04-25 22:02:19Z richard $ 
2
#  $Id: alcasar.sh 1851 2016-04-30 14:33:57Z franck $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# Ce programme est un logiciel libre ; This software is free and open source
7
# Ce programme est un logiciel libre ; This software is free and open source
Line 1701... Line 1701...
1701
# activation du "chien de garde" (watchdog) toutes les 3'
1701
# activation du "chien de garde" (watchdog) toutes les 3'
1702
*/3 * * * * root $DIR_DEST_BIN/alcasar-watchdog.sh > /dev/null 2>&1
1702
*/3 * * * * root $DIR_DEST_BIN/alcasar-watchdog.sh > /dev/null 2>&1
1703
EOF
1703
EOF
1704
# Enabling the watchdog every 18'
1704
# Enabling the watchdog every 18'
1705
	cat << EOF > /etc/cron.d/alcasar-daemon-watchdog
1705
	cat << EOF > /etc/cron.d/alcasar-daemon-watchdog
-
 
1706
# activation du "chien de garde" (daemon-watchdog) à chaque redémarrage
-
 
1707
@reboot root $DIR_DEST_BIN/alcasar-daemon.sh > /dev/null 2>&1
1706
# activation du "chien de garde" (daemon-watchdog) toutes les 18'
1708
# activation du "chien de garde" (daemon-watchdog) toutes les 18'
1707
*/18 * * * * root $DIR_DEST_BIN/alcasar-daemon.sh > /dev/null 2>&1
1709
*/18 * * * * root $DIR_DEST_BIN/alcasar-daemon.sh > /dev/null 2>&1
1708
EOF
1710
EOF
1709
# removing the users crons
1711
# removing the users crons
1710
	rm -f /var/spool/cron/*
1712
	rm -f /var/spool/cron/*