Subversion Repositories ALCASAR

Rev

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

Rev 2220 Rev 2228
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2220 2017-05-13 09:27:16Z richard $ 
2
#  $Id: alcasar.sh 2228 2017-05-15 04:42:19Z 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 1754... Line 1754...
1754
	cat << EOF > /etc/cron.d/alcasar-watchdog
1754
	cat << EOF > /etc/cron.d/alcasar-watchdog
1755
# run the "watchdog" every 3'
1755
# run the "watchdog" every 3'
1756
# empty the IPSET of the whitelisted IP (loaded dynamically with dnsmasq-whitelist) when every whitelisted users are logged out (every sunday at 0h05
1756
# empty the IPSET of the whitelisted IP (loaded dynamically with dnsmasq-whitelist) when every whitelisted users are logged out (every sunday at 0h05
1757
*/3 * * * * root $DIR_DEST_BIN/alcasar-watchdog.sh > /dev/null 2>&1
1757
*/3 * * * * root $DIR_DEST_BIN/alcasar-watchdog.sh > /dev/null 2>&1
1758
0 5 * * 0 root $DIR_DEST_BIN/alcasar-flush_ipset_wl.sh > /dev/null 2>&1
1758
0 5 * * 0 root $DIR_DEST_BIN/alcasar-flush_ipset_wl.sh > /dev/null 2>&1
-
 
1759
#* * * * * root $DIR_DEST_BIN/alcasar-watchdog-hl.sh > /dev/null 2>&1
1759
EOF
1760
EOF
1760
# Enabling the watchdog every 18'
1761
# Enabling the watchdog every 18'
1761
	cat << EOF > /etc/cron.d/alcasar-daemon-watchdog
1762
	cat << EOF > /etc/cron.d/alcasar-daemon-watchdog
1762
# activate  the daemon-watchdog after boot process
1763
# activate  the daemon-watchdog after boot process
1763
@reboot root $DIR_DEST_BIN/alcasar-daemon.sh > /dev/null 2>&1
1764
@reboot root $DIR_DEST_BIN/alcasar-daemon.sh > /dev/null 2>&1