Thanks for the info. Regards, Robert Adkins II IT Manager/Buyer Impel Industries, Inc. Ph. 586-254-5800 Fx. 586-254-5804
-----Original Message----- From: Bret Hughes [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 5:00 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Robert Adkins Subject: Re: Best place for this script to run... On Mon, 2003-01-27 at 16:44, Robert Adkins wrote: > Hello All, > > I have a script that I need to run at startup that will wait for a > significant amount of time and then execute on the servers. > > Basically, I need both servers to run this script at boot and mount up > drives on the other server, in cases of power outages. What I am thinking > about doing is putting a line into the rc.sysinit file at the end of the > file that will run the script and put it into the background. > I would definitely NOT put it into rc.sysinit this is what /etc/rc.d/rc.local is for and it should not get overwritten on an upgrade. rc.local should be symlinked into each runlevel as S99local so that it is the last thing to run at bootup or runlevel change. I would put all the commands into a separate file and call it from rc.local. you could also use the at command to say "run this file in five minutes" if it fails it can rerun the at command to call itself again in however long. HTH Bret -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list