[UCLA-LUG] rc.local
PrometheuS
chand@usc.edu
Tue, 18 Jul 2000 08:15:23 -0700 (PDT)
> On Mon, Jul 17, 2000 at 03:48:56PM -0700, Taison Tan wrote:
> >
> > I have xntpd and want the daemon to start up when I boot the computer. So
> > I edited the /etc/rc.d/rc.local file to contain the line:
> >
> > /etc/rc.d/init.d/xntpd start
> >
> > However, this doesn't seem to start the daemon when the computer reboots.
> > Do I need quotes or something?
>
> What you have above sounds like it should work. But if you can't figure out
> what's wrong, there's another option: Use redhat's runlevel editor (e.g. in
> linuxconf) to enable or disable xntpd in your current runlevel. If your
> machine starts up at the console only, you're in runlevel 3. If your machine
> goes into X after boot, then you're in runlevel 5.
>
I suggest you do it the old fashion way, and make a symlink from
/etc/rc.d/init.d/xntpd to /etc/rc.3/S82xntpd
which will cause it to start up on entering runnlevel 3 (adjust to
whatever runlevel(s) you want it to start in.
then make a similar link to /etc/rc.0/K82xntpd. this will
cause the daemon to be shut down at a system halt. (rc.6 is reboot.)