From owner-freebsd-questions Thu Jun 10 12:31:23 1999 Delivered-To: freebsd-questions@freebsd.org Received: from i.caniserv.com (i.caniserv.com [139.142.95.1]) by hub.freebsd.org (Postfix) with SMTP id 18B5214D18 for ; Thu, 10 Jun 1999 12:31:21 -0700 (PDT) (envelope-from csinger@workfire.com) Received: (qmail 25552 invoked from network); 10 Jun 1999 19:33:02 -0000 Received: from h139-142-220-195.ok.fiberone.net (HELO maverick) (@139.142.220.195) by 139.142.95.152 with SMTP; 10 Jun 1999 19:33:02 -0000 From: "Chris Singer" To: "BSD Help" Subject: Can't change a variable using Sysctl. Date: Thu, 10 Jun 1999 12:30:29 -0700 Message-ID: <000901beb377$b2b06f60$0ea78e8b@maverick.workfire.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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