From owner-freebsd-questions Thu Jun 10 21:38:39 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cygnus.rush.net (cygnus.rush.net [209.45.245.133]) by hub.freebsd.org (Postfix) with ESMTP id D06951506C for ; Thu, 10 Jun 1999 21:38:36 -0700 (PDT) (envelope-from bright@rush.net) Received: from localhost (bright@localhost) by cygnus.rush.net (8.9.3/8.9.3) with SMTP id XAA27239; Thu, 10 Jun 1999 23:57:36 -0500 (EST) Date: Thu, 10 Jun 1999 23:57:34 -0500 (EST) From: Alfred Perlstein To: Chris Singer Cc: BSD Help Subject: Re: Can't change a variable using Sysctl. In-Reply-To: <000901beb377$b2b06f60$0ea78e8b@maverick.workfire.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 10 Jun 1999, Chris Singer wrote: > I'm having trouble with using a program. I can't make any sense of it. I > have to add a line to the rc.conf file. The line is as follows: > /usr/sbin/sysctl -w kern.somaxconn=1024 > Now at start up I get this: > > > Starting local daemons :/etc/rc.local : /usr/sbin/sysctl: not found > > /etc/rc.local : /usr/sbin/sysctl : not found > > Which of course means that the variables weren't changed. I have checked to > see that the files is in that directory and it is. If I type it in at the > prompt I get "/usr/sbin/sysctl: command not found". I can start other > programs like "sysinstall" from the prompt by typeing /stand/sysinstall. > Sysinstall isn't in my directory path. > > I can manually type the line if I'm in the same directory as "sysctl" and it > will accept the command properly and adjust the variable. I was wondering > why FreeBSD is treating the path like a command in this case? What do I > have to do so that FreeBSD will correctly use the line I'm putting in > rc.conf? don't put it in rc.conf, but the command at the end of rc.local. rc.conf is read in by most of the startup scripts. rc.local is the last thing run during bootup as far as i know... -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message