<div>Thanx </div>
<div> </div>
<div>we have bitnami joomla stack so we need to go through /opt/xyz.sh this way to start our website manually. </div>
<div> </div>
<div>Thanx <br><br></div>
<div class="gmail_quote">On Tue, Jun 29, 2010 at 7:57 PM, Christopher L. Barnard <span dir="ltr"><<a href="mailto:cbarnard@rush.edu">cbarnard@rush.edu</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im"><br>On Tue, 2010-06-29 at 10:44 +1000, Cameron Simpson wrote:<br>> On 28Jun2010 10:16, Christopher L. Barnard <<a href="mailto:cbarnard@rush.edu">cbarnard@rush.edu</a>> wrote:<br>> | On Mon, 2010-06-28 at 15:08 +0530, Pravin Uttam Kharat wrote:<br>
> | > 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<br>> | > automatically shut down machine on mentioned time. Please suggest any<br>
> | > tool for this......<br>> |<br>> | [ Excellent description of the SnnFOO script scheme... ]<br>> | You can put it all in one script, and that is much easier for other<br>> | individuals to understand what you are doing. For 'start', the script<br>
> | is called with the command line parameter of "start". Likewise 'stop'<br>> | is called with the command line parameter of "stop". So 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>> And for your second requirement, have the "start" script use the "at"<br>> command to schedule a run of the "stop" script at a suitable time.<br>
<br></div>Only if you want the script to be alive for a finite time. If the need<br>is for the app to start gracefully on system startup and stop gracefully<br>on system shutdown, then 'at' should definitely not be used. If it<br>
should run for oh, say, the first 17 hours after powerup, then yes the<br>at command should be used.<br>
<div class="im"><br>--<br>Christopher L. Barnard<br>---------------------------------------------------------------------<br>Comment your code as though the maintainer will be a homicidal maniac<br>who knows where you live.<br>
<br><br></div>
<div>
<div></div>
<div class="h5">_______________________________________________<br>rhn-users mailing list<br><a href="mailto:rhn-users@redhat.com">rhn-users@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/rhn-users" target="_blank">https://www.redhat.com/mailman/listinfo/rhn-users</a><br>
</div></div></blockquote></div><br>