Date: Fri, 21 Oct 2005 12:59:15 +0200 From: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= <bkoenig@cs.tu-berlin.de> To: Jeff Maxwell <Jeff@crossvalley.com> Cc: freebsd-questions@freebsd.org Subject: Re: route question Message-ID: <4358CA03.1090409@cs.tu-berlin.de> In-Reply-To: <947090E2-A75F-4BA9-89E9-4B47E4EB01A0@crossvalley.com> References: <947090E2-A75F-4BA9-89E9-4B47E4EB01A0@crossvalley.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4358CA03.1090409>