Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Dec 2001 12:11:38 -0800
From:      "Crist J . Clark" <cristjc@earthlink.net>
To:        Axel Scheepers <axel@axel.truedestiny.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: 4.4-STABLE /usr/local/etc/rc.d doesn't start at boot time ?
Message-ID:  <20011208121138.A22383@blossom.cjclark.org>
In-Reply-To: <20011208145954.B97115@mars.thuis>; from axel@axel.truedestiny.net on Sat, Dec 08, 2001 at 02:59:54PM %2B0100
References:  <20011206173325.A59605@mars.thuis> <20011206170908.L8975@blossom.cjclark.org> <20011208145954.B97115@mars.thuis>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 08, 2001 at 02:59:54PM +0100, Axel Scheepers wrote:
> On Thu, Dec 06, 2001 at 05:09:08PM -0800, Crist J . Clark wrote:
> > First the standard:
> > 
> >   "Do your startup scripts end in '.sh'? Are they set executable?"
> 
> Hi Crist,
> 
> I didn't change anything, here's the directory:
> (14:52) mars:~ >ls -la /usr/local/etc/rc.d/
> total 7
> drwxr-xr-x   2 root  wheel   512 Dec  2 15:42 .
> drwxr-xr-x  11 root  wheel  1024 Oct 22 21:37 ..
> -r-xr-xr-x   1 root  wheel    50 Oct  7 19:52 000.compat3x.sh
> -rwxr-x--x   1 root  wheel   434 Jul 30 16:49 apache.sh
> -rwxr-x---   1 root  wheel   332 Jul  8 17:26 mysql-server.sh
> -r-xr-xr-x   1 root  wheel   392 Jul 25 22:58 samba.sh.sample
> -rwxr-x--x   1 root  wheel   349 Jul  8 18:25 snmpd.sh
> 
> All ok
> > 
> > But the more likely cause, did you run mergemaster(8) or update /etc
> > manually? If you updated /etc/rc without updating
> > /etc/defaults/rc.conf,  your script startup will be broken.
> I didn't run mergemaster, I like to perform these steps by hand if possible.
> I did put the line local_startup="/usr/local/etc/rc.d" to /etc/rc.conf
> This one probably changed, do you know what's best to do next ?

 # cp /usr/src/etc/defaults/rc.conf /etc/defaults/rc.conf

> When I run mergemaster I encounter a lot of diffs, is it safe to let it
> change just the /etc/rc.conf

mergemaster(8) never touches /etc/rc.conf.

> or is it just a one-liner I can add to it ?

I'm guessing the problem is with "$script_name_sep," but I would
advise updating /etc/defaults/rc.conf as a whole rather than a
band-aid fix in /etc/rc.conf.

> I'm feeling a bit nervous about running mergemaster since I only have a 
> limited amount of time and don't want to mess up the box ;-)

I would say running mergemaster(8) is the best way _not_ to mess up
the box. As this whole problem shows, updating bits and pieces can be
very hazardous.
-- 
"It's always funny until someone gets hurt. Then it's hilarious."

Crist J. Clark                     |     cjclark@alum.mit.edu
                                   |     cjclark@jhu.edu
http://people.freebsd.org/~cjc/    |     cjc@freebsd.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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