Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jun 1999 12:30:29 -0700
From:      "Chris Singer" <csinger@workfire.com>
To:        "BSD Help" <freebsd-questions@FreeBSD.ORG>
Subject:   Can't change a variable using Sysctl.
Message-ID:  <000901beb377$b2b06f60$0ea78e8b@maverick.workfire.com>

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

Chris Singer



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?000901beb377$b2b06f60$0ea78e8b>