[rhn-users] How to create startup script which start and stop certain services automatically.

Pravin Uttam Kharat pravinuttam at gmail.com
Tue Jun 29 14:51:56 UTC 2010


Thanx

we have bitnami joomla stack so we need to go through /opt/xyz.sh this way
to start our website manually.

Thanx

On Tue, Jun 29, 2010 at 7:57 PM, Christopher L. Barnard
<cbarnard at rush.edu>wrote:

>
> On Tue, 2010-06-29 at 10:44 +1000, Cameron Simpson wrote:
> > On 28Jun2010 10:16, Christopher L. Barnard <cbarnard at rush.edu> 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.
>
> Only if you want the script to be alive for a finite time.  If the need
> is for the app to start gracefully on system startup and stop gracefully
> on system shutdown, then 'at' should definitely not be used.  If it
> should run for oh, say, the first 17 hours after powerup, then yes the
> at command should be used.
>
> --
> Christopher L. Barnard
> ---------------------------------------------------------------------
> Comment your code as though the maintainer will be a homicidal maniac
> who knows where you live.
>
>
>  _______________________________________________
> rhn-users mailing list
> rhn-users at redhat.com
> https://www.redhat.com/mailman/listinfo/rhn-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhn-users/attachments/20100629/91df7076/attachment.htm>


More information about the rhn-users mailing list