<div class="gmail_quote">On Fri, Nov 13, 2009 at 4:40 PM, Robert Heller <span dir="ltr"><<a href="mailto:heller@deepsoft.com">heller@deepsoft.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
At Fri, 13 Nov 2009 15:15:16 -0500 CentOS mailing list <<a href="mailto:centos@centos.org">centos@centos.org</a>> wrote:<br>
<div class="im"><br>
><br>
><br>
><br>
> On Fri, Nov 13, 2009 at 2:47 PM, <<a href="mailto:m.roth@5-cent.us">m.roth@5-cent.us</a>> wrote:<br>
><br>
> > > On 11/13/2009 07:21 PM, Larry Brigman wrote:<br>
> > >> either write an init script to be added to /etc/rc.d/init.d or<br>
> > >> add it to the end of /etc/rc.d/rc.local<br>
> > ><br>
> > > It looks, to me, that Victor is at a stage where he does not know what<br>
> > > he is doing with the basic stuff - pointing him at good docs might be<br>
> > > worth more than spoon-feeding.<br>
> ><br>
><br>
</div><div class="im">> I'm a bit rusty. It's been a couple of years since I've run my own server,<br>
> and I don't know this OS. And as we all know, each OS is different. I'm<br>
> trying to install scripts I wrote years ago to do my MySQL backups.<br>
<br>
</div>You probably don't want to do your MySQL backups only at boot time.  I<br>
think what you really need is to look at crontab's documentation.<br>
Unless your MySQL backup scripts themselves behave like deamons and do<br>
their own cron-like behaviour.<br>
<br>
There are really only two main flavors of UNIX/Linux boot<br>
methods/schools.  The BSD school and the SYS V school.  *Most* Linux<br>
distros (including RedHat's) favor the SYS V school: little scripts in<br>
/etc/init.d (or /etc/rc.d/init.d, depending on the vintage), with<br>
symlinks in /etc/rcN.d/.  The BSD school has a set of scripts for each<br>
run level.  I *think* Slackware uses this method (just because Slackware<br>
likes to be different).<br>
<div class="im"><br>
><br>
> As for pointing me to the docs, I looked through them but couldn't make<br>
> heads or tails of them. Yes, I need to study them, but right now I just need<br>
> to get some basic things working so that I can make a little money and put<br>
> food on the table :)<br>
><br>
</div><div class="im">> I've loaded my scripts to /etc/rc.d/init.d Now how do I schedule my cron<br>
> jobs?<br>
<br>
</div>Cron job scripts don't go in /etc/rc.d/init.d!.  You can (should!) put<br>
them someplace else.  It does not really matter where (but should be<br>
someplace sensable).  You schedule them using crontab -- there are TWO<br>
manpages you should read: man 1 crontab (using the command to list or<br>
edit a crontab file) AND man 5 crontab (format of the entries in the<br>
file).  Read *both* pages carefully.<br></blockquote><div><br></div><div>Thank you.</div><div>V</div></div>