On Tue, Aug 20, 2002 at 01:10:42PM -0700, Desmond Lee wrote: > Just a couple more questions: > > The documentation > >(http://www.redhat.com/docs/manuals/linux/RHL-7.2-Manual/custom-guide/cron-task.html) > says the following: > "To start the cron service, use the command /sbin/service crond start. To > stop the service, use the command /sbin/service crond stop. It is > recommended that you start the service at boot time. Refer to Chapter 8 for > details on starting the cron service automatically at boot time." > But in chapter 8 i couldn't really understand what they were talking about. > They said something along the lines of run levels. So, to get the cron tab > to run at book i should be interested in the level 6 run level because that > relates to stuff when the box gets rebooted. Am i supppose to add a file > then to the /etc/rc.d/rc6.d/ diretory or am i suppose to edit a file there?
The run levels refered to in that document are defined in /etc/inittab. Check that file and you will see what I mean. Also, man 5 inittab will help you on this. At the top of the inittab file is a description of what each run level is used for in RedHat. Now, to have a service start automatically at system startup, use chkconfig. This program allows you to add, check and remove services from automatically starting. The program has a complete man page for your reference. > I thought that to automate a process at start up you add an entry to the > /etc/rc.d/rc.local file. So, would it be sufficient to just add the > following to my /etc/rc.d/rc.local file: > /sbin/service crond start It would, but I recomend you use the chkconfig method. Also, note that the default in RedHat is for crond to start automatically in run levels 2, 3, 4 and 5, so you will most likely not need to do anything. > Also, do i have to shut down the crontab on reboot aswell? If so, where do i > do this? This is handled by the system's rc scripts automatically (with some help from init). > Oh, and totally unrelated question, can someone tell me what i have to do to > get my floppy, zipdisk and rom drives mounted at boot time? Right now if i > get the following in the mnt/ dir > > ls /mnt/ > cdrom floppy test > > So does this mean that my rom an floppy are already mounted? Oh and what's > test? Check man 5 fstab. the answer is right there. > > > Thansk a bunch > > Desmond No problem. Cheers, -- Javier Gostling Ingeniero de Sistemas Virtualia S.A. [EMAIL PROTECTED] Fono: +56 (2) 202-6264 x 130 Fax: +56 (2) 342-8763 Av. Kennedy 5757, of 1502 Las Condes Santiago Chile
msg86300/pgp00000.pgp
Description: PGP signature