Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2007 15:44:32 +0200
From:      Manolis Kiagias <sonicy@otenet.gr>
To:        Mario Lobo <mlobo@digiart.art.br>
Cc:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: Problem in /usr/local/etc/rc.d [SOLVED]
Message-ID:  <4774FDC0.3010301@otenet.gr>
In-Reply-To: <200712281001.34605.mlobo@digiart.art.br>
References:  <200712280853.59966.mlobo@digiart.art.br>	<4774EAB8.6030304@FreeBSD.org> <200712281001.34605.mlobo@digiart.art.br>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4774FDC0.3010301>