On Sunday 01 September 2002 12:04 am, Mick wrote: > Ok I've done some more tests... > I CAN now make it work from cron. > > When I was running shorewall v1.3.1 and had trouble with it not restarting > because of its lockfile, I moved the restart command into my script where I > could delete the lockfile before I restarted shorewall. > > But if my script is called from cron, and my script restarts the firewall, > shorewall will run, but I have the problem where I cant communicate through > my firewall from any of my natted PC's behind the firewall. >
I've been successful in restarting shorewall through cron by redirecting stdout and stderr as follows: */10 * * * * /sbin/shorewall restart > /tmp/shoreout 2>&1 If redirection isn't used, the script is being stopped before it completes. It is stopping inside an "echo" statement and the lockfile isn't being released. -Tom -- Tom Eastep \ Shorewall - iptables made easy AIM: tmeastep \ http://www.shorewall.net ICQ: #60745924 \ [EMAIL PROTECTED] ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
