etc/ucarp/ucarp-up —
Questo file e’ identico su entrambe le macchine.
#!/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
VIP=192.168.2.241
VIP_BRD=255.255.255.0
exec 2> /dev/null
ip addr add $VIP/24 brd $VIP_BRD dev “$1”
arping -q -c 5 -U $vip
chmod g+rx /var/run/samba/winbindd_privileged
chgrp proxy /var/run/samba/winbindd_privileged
/etc/init.d/squid start
/etc/init.d/dansguardian start
/etc/init.d/squid3 start
exit 0
Categorised as: Cluster | Linux | Sistemi operativi | Work
Comments are disabled on this post