From owner-freebsd-questions@FreeBSD.ORG Mon Nov 27 17:40:55 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4425716A40F for ; Mon, 27 Nov 2006 17:40:55 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (www.unsane.co.uk [85.233.185.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id E906444194 for ; Mon, 27 Nov 2006 17:27:12 +0000 (GMT) (envelope-from jhary@unsane.co.uk) Received: from [192.168.10.217] (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.13.7/8.13.3) with ESMTP id kARHRsTL073562 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 27 Nov 2006 17:27:57 GMT (envelope-from jhary@unsane.co.uk) Message-ID: <456B2010.7050800@unsane.co.uk> Date: Mon, 27 Nov 2006 17:27:44 +0000 From: Vince Hoffman User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: Gregory Edigarov References: <456B12B3.2090806@bestnet.kharkov.ua> In-Reply-To: <456B12B3.2090806@bestnet.kharkov.ua> X-Enigmail-Version: 0.94.1.1 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: freebsd doesm't see my script on boot 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: Mon, 27 Nov 2006 17:40:55 -0000 Gregory Edigarov wrote: > Hello, Everybody > > Well, here is what I am doing: > ls -l /usr/local/etc/rc.d > total 30 > -r-xr-xr-x 1 root wheel 4744 Nov 13 11:38 apache22 > -r-xr-xr-x 1 root wheel 673 Nov 13 14:27 clamav-clamd > -r-xr-xr-x 1 root wheel 722 Nov 13 14:27 clamav-freshclam > -r-xr-xr-x 1 root wheel 1057 Nov 13 14:27 clamav-milter > -r-xr-xr-x 1 root wheel 1254 Nov 13 13:01 gnugk > -r-xr-xr-x 1 root wheel 198 Nov 15 01:17 l2tpd > -r-xr-xr-x 1 root wheel 196 Nov 14 12:35 popa3d > -r-xr-xr-x 1 root wheel 1642 Nov 13 11:19 quagga > -r-xr-xr-x 1 root wheel 4371 Nov 13 14:00 samba > -r-xr-xr-x 1 root wheel 1324 Nov 14 15:20 squid > -r-xr-xr-x 1 root wheel 564 Nov 13 11:19 watchquagga > > cat /usr/local/etc/rc.d/l2tpd > #!/bin/sh > > #PROVIDE l2tpd > #REQUIRE NETWORKING > > . /etc/rc.subr > > name="l2tpd" > rcvar=`set_rcvar` > command="/usr/local/sbin/${name}" > flags="" > echo "l2tp debug" > > load_rc_config $name > run_rc_command "$1" > > in rc.conf: > l2tpd_enable="YES" > > Then after reboot: > ps ax | grep l2tpd > 667 v1 RL+ 0:00.00 grep l2tpd > > i.e no l2tpd has been started. > no messages on console, either. My script just got silently skipped, all > other services are starting up fine. > > What's wrong? > Does it work if you run it manually? does it start if you run /etc/rc.d/localpkg start not certain this will help but try adding verbose_loading="YES" to /boot/loader.conf to see if that give more info on startup. Also try adding set -x to your script to enable more debugging output is you think you need it Vince