Subversion Repositories ALCASAR

Compare Revisions

No changes between revisions

Ignore whitespace Rev 470 → Rev 476

/conf/logrotate.d/ulogd
1,4 → 1,4
/var/log/firewall/firewall.log {
/var/log/firewall/tracability.log {
missingok
rotate 52
weekly
8,3 → 8,23
/etc/init.d/ulogd restart
endscript
}
/var/log/firewall/ssh.log {
missingok
rotate 52
weekly
dateext
sharedscripts
postrotate
/etc/init.d/ulogd restart
endscript
}
/var/log/firewall/ext-access.log {
missingok
rotate 52
weekly
dateext
sharedscripts
postrotate
/etc/init.d/ulogd restart
endscript
}
/conf/ulogd-init
0,0 → 1,64
#!/bin/sh
#
# chkconfig: 345 81 19
# description: ulogd is the userspace logging daemon for netfilter/iptables
#
 
 
. /etc/rc.d/init.d/functions
 
 
function start()
{
printf "Starting %s: " "ulogd"
for i in `ls /etc/ulogd-*`
do
daemon /usr/sbin/ulogd -d -c $i
done
echo
touch /var/lock/subsys/ulogd
}
 
 
function stop()
{
printf "Stopping %s: " "ulogd"
killproc ulogd
echo
rm -f /var/lock/subsys/ulogd
}
 
 
function reload()
{
pid=`pidof ulogd`
if [ "x$pid" != "x" ]; then
kill -HUP $pid 2>/dev/null
fi
touch /var/lock/subsys/ulogd
}
 
 
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
reload)
reload
;;
status)
status ulogd
;;
*)
printf "Usage: %s {start|stop|status|restart|reload}\n" "ulogd"
exit 1
esac
 
exit 0
Property changes:
Added: svn:executable
+*
\ No newline at end of property