frantisek holop wrote:
hi there,
i would like to use /etc/daily.local for flushing some pf tables.
kripel> cat /etc/daily.local
#!/bin/sh
echo "flushing bad_ssh: "
pfctl -t bad_ssh -T flush
i don't run sendmail, so i modified root's crontab:
30 1 * * * /bin/sh /etc/daily 2>&1 > /var/log/daily
.out
my problem is, that pfctl's output goes to the terminal and
not the log file...
also, is there a way to skip the other parts of /etc/daily?
i don't really need those, but i want to keep my changes
seperate (*.local). what about a SKIP_DAILY=true or some such
in /etc/daily.local?
-f
I maybe do not get what you mean, but I'll try to answer it.
You dont want to use /etc/daily?
Just ``sudo crontab -e'' and comment it out.
No need for SKIP_DAILY.
You want to run /etc/daily.local?
Modify your above line, but use
``/bin/sh /etc/daily >/var/log/daily 2>&1''
Yes. The order of the redirections is important.
Cheers
Alexander