cjohnson19791979@gmail.com on 12 Jun 2009 16:25:26 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Why start servers from cron instead of /etc/rc.d?...


Possibly to control the order in which they start?





This message was sent from my Treo® wireless handheld device.

-----Original Message-----
From: Fred Stluka <fred@bristle.com>
Sent: Friday, June 12, 2009 7:19  PM
To: PLUG -- Philly Linux Users Group <plug@lists.phillylinux.org>
Subject: [PLUG] Why start servers from cron instead of /etc/rc.d?...

Linux experts,

Another question about the Amazon virtual Linux box I'm setting
up...

The machine image I started from has the standard System V startup
file structure with
    /etc/rc.d/init.d
files and
    /etc/rc.d/rc*.d
sym links to cause the various files to stop (K) and start (S)
automatically at reboot.  However it does not have any S links for
tomcat, apache, or mysql, so they don't get started.  It has only
K links for them.  Instead, it starts them from cron via the file:
    /var/spool/cron/root
which contains:

    # restart tomcat on reboot
    @reboot /etc/init.d/tomcat5 start

    # restart apache on reboot
    @reboot /home/webuser/helloworld/bin/run_apache

    # restart mysql server on reboot
    @reboot /etc/init.d/mysqld start


Any idea why it would have been set up this way?  Any advantages
you can see?  Something to do with the timing of the server starts,
or access rights, or something?  I don't see it.  Why not use the
standard S links, and the standard config files?

Thanks,
--Fred
---------------------------------------------------------------------
Fred Stluka -- mailto:fred@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
---------------------------------------------------------------------


___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug