Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jun 1999 23:57:34 -0500 (EST)
From:      Alfred Perlstein <bright@rush.net>
To:        Chris Singer <csinger@workfire.com>
Cc:        BSD Help <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Can't change a variable using Sysctl.
Message-ID:  <Pine.BSF.3.96.990610235548.14320P-100000@cygnus.rush.net>
In-Reply-To: <000901beb377$b2b06f60$0ea78e8b@maverick.workfire.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990610235548.14320P-100000>