Greetings, I have new freshly installed servers of FreeBSD 6.3. We started our migration before 6.4 was released. Anyway we have some custom tools that we have built startup scripts for and placed them into /usr/local/etc/rc.d. However the problem is that these tools get called twice to startup. Thus leaving us with two instances of the tools running. I've read a thread similar to this question in the mailing list archive however it had to do with upgrading and didn't seem to apply to my issue. I've added a buch of logic to the script to try to determine if the tool is running or not, but that seems like band aiding the issue instead of fixing the problem. Any advice? -Geoff Sweet
Ah, indeed that seems to be the problem. Thank you, I may never have spotted that on my own. -Geoff Sweet On Tue, 2008-11-11 at 11:21 -0800, David Wolfskill wrote:> On Tue, Nov 11, 2008 at 10:45:04AM -0800, Geoff Sweet wrote: > > Greetings, I have new freshly installed servers of FreeBSD 6.3.... > > Any advice? > > Check the value of local_startup in /etc/{defaults/,}rc.conf. > > In 6.3, I believe the default was > > /usr/local/etc/rc.d /usr/X11R6/etc/rc.d > > but you may find that /usr/X11R6 has become a symlink to /usr/local > (after upgrading X11). > > If it is, you can avoid the problem by placing > > local_startup="/usr/local/etc/rc.d" > > in /etc/rc.conf. > > Peace, > david
On Tue, Nov 11, 2008 at 10:45:04AM -0800, Geoff Sweet wrote:> Greetings, I have new freshly installed servers of FreeBSD 6.3.... > Any advice?Check the value of local_startup in /etc/{defaults/,}rc.conf. In 6.3, I believe the default was /usr/local/etc/rc.d /usr/X11R6/etc/rc.d but you may find that /usr/X11R6 has become a symlink to /usr/local (after upgrading X11). If it is, you can avoid the problem by placing local_startup="/usr/local/etc/rc.d" in /etc/rc.conf. Peace, david -- David H. Wolfskill david@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20081111/b7cd7e3c/attachment.pgp
On Tue, 11 Nov 2008 at 13:45 -0000, Geoff Sweet wrote:> Greetings, I have new freshly installed servers of FreeBSD 6.3. We > started our migration before 6.4 was released. Anyway we have some > custom tools that we have built startup scripts for and placed them > into /usr/local/etc/rc.d. However the problem is that these tools get > called twice to startup. Thus leaving us with two instances of the > tools running.You probably need the following line added to /etc/rc.conf: local_startup="/usr/local/etc/rc.d" The defaults in /etc/defaults/rc.conf still try to run startup scripts in /usr/local/etc/rc.d and /usr/X11R6/etc/rc.d, however these are probably the same location via a /usr/X11R6 link. One of the X ports attempts to add this, but I've seen cases where it doesn't get added. Stuart -- I've never been lost; I was once bewildered for three days, but never lost! -- Daniel Boone