From owner-freebsd-questions@FreeBSD.ORG Fri Oct 21 10:58:15 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4DA0916A41F for ; Fri, 21 Oct 2005 10:58:15 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from efacilitas.de (smtp.efacilitas.de [85.10.196.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC2CC43D45 for ; Fri, 21 Oct 2005 10:58:14 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from eurystheus.local (port-212-202-37-245.dynamic.qsc.de [212.202.37.245]) by efacilitas.de (Postfix) with ESMTP id 8603F4B04D; Fri, 21 Oct 2005 13:05:30 +0200 (CEST) Received: from [192.168.1.2] (muhkuh.local [192.168.1.2]) by eurystheus.local (Postfix) with ESMTP id B35E9331FF0; Fri, 21 Oct 2005 12:57:16 +0200 (CEST) Message-ID: <4358CA03.1090409@cs.tu-berlin.de> Date: Fri, 21 Oct 2005 12:59:15 +0200 From: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20050928 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jeff Maxwell References: <947090E2-A75F-4BA9-89E9-4B47E4EB01A0@crossvalley.com> In-Reply-To: <947090E2-A75F-4BA9-89E9-4B47E4EB01A0@crossvalley.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: route question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2005 10:58:15 -0000 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 /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