Running /etc/rc.firewall in the background
Mark
admin at asarian-host.net
Thu Sep 11 10:57:00 PDT 2003
----- Original Message -----
From: "Jack L. Stone" <jackstone at sage-one.net>
To: "Mark" <admin at asarian-host.net>; <freebsd-questions at freebsd.org>
Sent: Thursday, September 11, 2003 3:37 PM
Subject: Re: Running /etc/rc.firewall in the background
> At 01:16 PM 9.11.2003 GMT, Mark wrote:
> >I have quite a few firewall rules (FreeBSD 4.7R). This causes the
> >server start-up to take several minutes extra. I wanted to have the
> > rules loaded in the background; like so:
> >
> >firewall_script="/etc/rc.firewall &"
> >
> >But, alas, that does not work. :( Is there a way to do this at all?
> >
> >Thanks!
> >
> >- Mark
> >
>
> Yes, but use this instead (if "firewall is your rules script file"):
> # /bin/sh /etc/rc.firewall &
Yes, that is what I tried to accomplish. I found where /etc/rc.firewall is
loaded, and changed it accordingly in /etc/rc.network:
if [ -r "${firewall_script}" ]; then
. "${firewall_script}" &
Solved. :)
- Mark
More information about the freebsd-questions
mailing list