Fred Stluka on 12 Jun 2009 16:19:35 -0700 |
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
|
|