route question
Björn König
bkoenig at cs.tu-berlin.de
Fri Oct 21 03:58:15 PDT 2005
Jeff Maxwell wrote:
> I added a route to my rc.conf now I get this message. The route that I
> added seems to work, but
>
> Cron <operator at mail> /usr/libexec/save-entropy
>
> route: not found
>
> The route that I added seems to work, but the syntax must be wrong.
> this is what I added:
>
> defaultrouter="10.10.10.1"
> hostname="mail.________.com"
> ifconfig_fxp0="inet 10.10.10.7 netmask 255.255.255.0"
> route add -net 10.10.30.0 10.10.10.3
This is a quite bad idea, because rc.conf will be included everytime an
rc script is called. This means that your command line will be executed
several times if you just call "/etc/rc.d/inetd restart" for example.
# echo 'echo "hello world"' >> /etc/rc.conf
# /etc/rc.d/inetd forcerestart
hello world
hello world
inetd not running? (check /var/run/inetd.pid).
hello world
Starting inetd.
Björn
More information about the freebsd-questions
mailing list