Re: How to create startup script which start and stop certain services automatically.
Pravin Uttam Kharat <[email protected]> Tue, 29 Jun 2010 13:17:29 +0530
| Newsgroups | gmane.linux.redhat.rhn.user |
|---|---|
| Message-ID | <[email protected]> |
--===============3823167074996880192== Content-Type: multipart/alternative; boundary=0016363b90f6fb1346048a2672f9 --0016363b90f6fb1346048a2672f9 Content-Type: text/plain; charset=ISO-8859-1 Thanks for your quick reply..... On Tue, Jun 29, 2010 at 6:14 AM, Cameron Simpson <[email protected]> wrote: > On 28Jun2010 10:16, Christopher L. Barnard <[email protected]> wrote: > | On Mon, 2010-06-28 at 15:08 +0530, Pravin Uttam Kharat wrote: > | > I have RHEL 5 I installed Bitnami Joomla on it.I want to configure a > | > startup script which run that script when RHEL 5 Machine start and > | > automatically shut down machine on mentioned time. Please suggest any > | > tool for this...... > | > | [ Excellent description of the SnnFOO script scheme... ] > | You can put it all in one script, and that is much easier for other > | individuals to understand what you are doing. For 'start', the script > | is called with the command line parameter of "start". Likewise 'stop' > | is called with the command line parameter of "stop". So just switch on > | the command line parameter and you can put the script in /etc/init.d > | with a symlink to /etc/rc2.d/S****** and to /etc/rc0.d/K****** > > And for your second requirement, have the "start" script use the "at" > command to schedule a run of the "stop" script at a suitable time. > -- > Cameron Simpson <[email protected]> DoD#743 > http://www.cskk.ezoshosting.com/cs/ > > It is better never to have been born. But who among us has such luck? > > _______________________________________________ > rhn-users mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/rhn-users > --0016363b90f6fb1346048a2672f9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for your quick reply.....<br><br><div class=3D"gmail_quote">On Tue, = Jun 29, 2010 at 6:14 AM, Cameron Simpson <span dir=3D"ltr"><<a href=3D"m= ailto:[email protected]">[email protected]</a>></span> wrote:<br><blockquote cla= ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa= dding-left:1ex;"> <div class=3D"im">On 28Jun2010 10:16, Christopher L. Barnard <<a href=3D= "mailto:[email protected]">[email protected]</a>> wrote:<br> | On Mon, 2010-06-28 at 15:08 +0530, Pravin Uttam Kharat wrote:<br> </div><div class=3D"im">| > I have RHEL 5 I installed Bitnami Joomla on = it.I want to configure a<br> | > startup script which run that script when RHEL 5 Machine start and<b= r> | > automatically shut down machine on mentioned time. Please suggest an= y<br> | > tool for this......<br> |<br> </div>| [ Excellent description of the SnnFOO script scheme... ]<br> <div class=3D"im">| You can put it all in one script, and that is much easi= er for other<br> | individuals to understand what you are doing. =A0For 'start', the= script<br> | is called with the command line parameter of "start". =A0 Likew= ise 'stop'<br> | is called with the command line parameter of "stop". =A0So just= switch on<br> | the command line parameter and you can put the script in /etc/init.d<br> | with a symlink to /etc/rc2.d/S****** and to /etc/rc0.d/K******<br> <br> </div>And for your second requirement, have the "start" script us= e the "at"<br> command to schedule a run of the "stop" script at a suitable time= .<br> <font color=3D"#888888">--<br> Cameron Simpson <<a href=3D"mailto:[email protected]">[email protected]</a>> = DoD#743<br> <a href=3D"http://www.cskk.ezoshosting.com/cs/" target=3D"_blank">http://ww= w.cskk.ezoshosting.com/cs/</a><br> <br> It is better never to have been born. But who among us has such luck?<br> </font><div><div class=3D"h5"><br> _______________________________________________<br> rhn-users mailing list<br> <a href=3D"mailto:[email protected]">[email protected]</a><br> <a href=3D"https://www.redhat.com/mailman/listinfo/rhn-users" target=3D"_bl= ank">https://www.redhat.com/mailman/listinfo/rhn-users</a><br> </div></div></blockquote></div><br> --0016363b90f6fb1346048a2672f9-- --===============3823167074996880192== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ rhn-users mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhn-users --===============3823167074996880192==--