output strongswan.conf and daemon.log on RADIUS hosts with strongSwan IMV

This commit is contained in:
Andreas Steffen
2011-06-01 21:38:03 +02:00
parent d4c8fe3cb6
commit a420b4736f
2 changed files with 19 additions and 2 deletions
+2 -2
View File
@@ -63,12 +63,12 @@ done
##########################################################################
# clear radius.log on FreeRadius servers
# clear radius.log and daemon.log on FreeRadius servers
#
for host in $RADIUSHOSTS
do
eval HOSTLOGIN="root@`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`"
ssh $SSHCONF $HOSTLOGIN 'rm -f /var/log/radius/radius.log; \
ssh $SSHCONF $HOSTLOGIN 'rm -f /var/log/radius/radius.log /var/log/daemon.log; \
kill -SIGHUP `cat /var/run/syslogd.pid`' > /dev/null 2>&1
done