From owner-freebsd-questions@FreeBSD.ORG Fri Dec 28 13:44:46 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91BD216A417 for ; Fri, 28 Dec 2007 13:44:46 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.93]) by mx1.freebsd.org (Postfix) with ESMTP id 0762A13C442 for ; Fri, 28 Dec 2007 13:44:45 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from freebsdgr.dyndns.org (athedsl-14099.home.otenet.gr [87.202.55.129]) (authenticated bits=0) by aiolos.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id lBSDiWhL031652; Fri, 28 Dec 2007 15:44:33 +0200 Message-ID: <4774FDC0.3010301@otenet.gr> Date: Fri, 28 Dec 2007 15:44:32 +0200 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.9 (X11/20071217) MIME-Version: 1.0 To: Mario Lobo References: <200712280853.59966.mlobo@digiart.art.br> <4774EAB8.6030304@FreeBSD.org> <200712281001.34605.mlobo@digiart.art.br> In-Reply-To: <200712281001.34605.mlobo@digiart.art.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: User Questions Subject: Re: Problem in /usr/local/etc/rc.d [SOLVED] 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: Fri, 28 Dec 2007 13:44:46 -0000 Mario Lobo wrote: > On Friday 28 December 2007 09:23:20 Kris Kennaway wrote: > >> Mario Lobo wrote: >> >>> Hello; >>> >>> here is a snip of dmesg: >>> >>> --------------------------------------------- >>> Starting sshd. >>> Starting cron. >>> Local package initialization: >>> Starting Init.... >>> Starting Samba.... >>> Removing stale Samba tdb files: >>> . >>> . >>> . >>> . >>> . >>> . >>> . >>> done >>> Starting Init.... >>> Starting Samba.... >>> Removing stale Samba tdb files: >>> . >>> . >>> . >>> . >>> . >>> . >>> . >>> done >>> --------------------------------------------- >>> i have only 2 scripts in /usr/local/etc/rc.d: >>> init.sh, which starts vsftpd and a dyndns client >>> and samba.sh. >>> >>> As you can see, the scripts in that directory are beeing ran twice !. I >>> looked up and down the server (/etc/init.d specially), trying to see why >>> this is happening and I can't find anything !. >>> >>> Would anybody have a suggestion on what I should look for? >>> >>> Thanks, >>> >>> P.S. - I wish you all a happy 2008 ! My guts keep telling me that this is >>> going to be a great year for FreeBSD !! >>> >> Check your /etc/rc.conf settings, e.g. local_startup or whatever >> controls rc.d directories. Either /usr/local is listed twice or it >> still lists /usr/X11R6 after it was replaced by a symlink to /usr/local. >> In the latter case this should have been taken care of by the xorg >> upgrade process. >> >> Kris >> > > Right on the spot Kris !! > > i had > local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs. > > on /etc/defaults/rc.conf > > Thanks !! > > Don't edit the /etc/defaults/rc.conf Just override it by inserting: local_startup="/usr/local/etc/rc.d" in your /etc/rc.conf file. Manolis