iptables restart hangs

Rick Stevens rstevens at vitalstream.com
Tue Feb 22 21:44:23 UTC 2005


David Cary Hart wrote:
> On Tue, 2005-02-22 at 11:54 -0800, Rick Stevens wrote:
> 
>>David Cary Hart wrote:
>>
>>>On Tue, 2005-02-22 at 14:35 -0500, Chris Miller wrote:
>>>
>>>
>>>>[root at sea-fw1 ~]# /etc/init.d/iptables condrestart
>>>
> 
>>Or "/etc/rc.d/init.d/iptables restart", which is sort of the same thing.
>>
>>"Linux: There's more than one way to do it.  Egads!"  :-)
> 
> 
> Is his command line ("condrestart") valid? I never heard of that one
> before.

Yes.  "condrestart" basically checks for the existence of a lock file.
If it exists, it does a restart.  If there's no lock file, it does
nothing.  In other words, "If it's running, restart it.  If it's not,
don't do anything."
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-      A day for firm decisions!!!   Well, then again, maybe not!    -
----------------------------------------------------------------------




More information about the fedora-list mailing list