You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
357 B
16 lines
357 B
#!/bin/sh
|
|
if [ -f /var/log/shorewall-init.log ]
|
|
then
|
|
rm /var/log/shorewall-init.log
|
|
fi
|
|
if [ -f /var/log/shorewall6-init.log ]
|
|
then
|
|
rm /var/log/shorewall6-init.log
|
|
fi
|
|
if [ -f /var/log/shorewall.log ]
|
|
then
|
|
mv /var/log/shorewall.log /var/log/shorewall_$(date +"%Y.%m.%d_%H:%m").log
|
|
fi
|
|
systemctl start ulogd2
|
|
systemctl start shorewall
|
|
systemctl start shorewall6 |