Hi, I have my httpd process that starts in runlevel3 with the following info # chkconfig: - 85 15 # description: Apache is a World Wide Web server. It is used to serve \ # HTML files and CGI. # processname: httpd # pidfile: /var/run/httpd.pid # config: /etc/httpd/conf/httpd.conf the filename is /etc/rc.3.d/K15httpd However I installed an antivirus that uses a tomcat process that *must* be started prior to apache. the antivirus has the filename /etc/rc3.d/S99ISproxy How can I make the httpd start *after* the S99ISproxy process? Thanks, -- ------------------------------------------- Erick Perez Linux User 376588 http://counter.li.org/ (Get counted!!!) Panama, Republic of Panama -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20051219/cfe446b6/attachment-0001.html>
Barry L. Kline
2005-Dec-19 20:10 UTC
[CentOS] use chkconfig to change service startup order
Erick Perez wrote:> Hi, I have my httpd process that starts in runlevel3 with the following info > > # chkconfig: - 85 15 > # description: Apache is a World Wide Web server. It is used to serve \ > # HTML files and CGI. > # processname: httpd > # pidfile: /var/run/httpd.pid > # config: /etc/httpd/conf/httpd.conf > > the filename is /etc/rc.3.d/K15httpd > > However I installed an antivirus that uses a tomcat process that *must* be > started prior to apache. > the antivirus has the filename /etc/rc3.d/S99ISproxy > > How can I make the httpd start *after* the S99ISproxy process? > > Thanks,Do a "man chkconfig" and read through it. It will explain how to do this. The summary information is that you're going to want to modify the line: # chkconfig: - 99 ?? in /etc/rc.d/init.d/ISproxy file to change the 99 to a number lower than 85 (so it starts before httpd). You can then: chkconfig ISproxy off chkconfig ISproxy on to set up the symbolic links. BK
Robin Mordasiewicz
2005-Dec-19 20:10 UTC
[CentOS] use chkconfig to change service startup order
On Mon, 19 Dec 2005, Erick Perez wrote:> Hi, I have my httpd process that starts in runlevel3 with the following info > > # chkconfig: - 85 15 > # description: Apache is a World Wide Web server. It is used to serve \ > # HTML files and CGI. > # processname: httpd > # pidfile: /var/run/httpd.pid > # config: /etc/httpd/conf/httpd.conf > > the filename is /etc/rc.3.d/K15httpd > > However I installed an antivirus that uses a tomcat process that *must* be > started prior to apache. > the antivirus has the filename /etc/rc3.d/S99ISproxy > > How can I make the httpd start *after* the S99ISproxy process?the file /etc/rc3.d/S99ISproxy is actually a symlink that is created by chkconfig which points to /etc/init.d/ISproxy the number 85 and 15 represent the order number which the script is to be run at start up time and shutdown time. after running "chkconfig httpd on" you will find a symlinks /etc/rc3.d/S85httpd -> /etc/init.d/httpd /etc/rc6.d/K15httpd -> /etc/init.d/httpd chkconfig reads the startup script named httpd and finds the line which starts with "# chkconfig:" and then creates the symlinks in /etc/rc3.d and /etc/rc4.d based on the numbers. The symlinks in the rc3.d directory are executed in order. You can edit the numbers at the top of the init script In your case you would either change your anti virus startup script to start before httpd, or modify your httpd startup script. I would modify the anti-virus startup script so that it had < snip /etc/init.d/ISproxy > # chkconfig: - 84 16 < /snip >
Hey! Change S99ISproxy to SxxISproxy , where xx is a number smaller that the one in the Sxxhttpd... -- Cheers! Wim De Hul ----------------------------------------- Belgacom International Carrier Services AS6774 ----------------------------------------- Tel: +32 2 547 5151 option 1-3 Mail: noc at belbone.be Peering: peering at belbone.be Abuse: abuse at belbone.be ----------------------------------------- My public key is available at: hkp://subkeys.pgp.net ----------------------------------------- On Mon, Dec 19, 2005 at 02:52:50PM -0500, Erick Perez wrote:> Hi, I have my httpd process that starts in runlevel3 with the following info > > # chkconfig: - 85 15 > # description: Apache is a World Wide Web server. It is used to serve \ > # HTML files and CGI. > # processname: httpd > # pidfile: /var/run/httpd.pid > # config: /etc/httpd/conf/httpd.conf > > the filename is /etc/rc.3.d/K15httpd > > However I installed an antivirus that uses a tomcat process that *must* be > started prior to apache. > the antivirus has the filename /etc/rc3.d/S99ISproxy > > How can I make the httpd start *after* the S99ISproxy process? > > Thanks, > > -- > > ------------------------------------------- > Erick Perez > Linux User 376588 > http://counter.li.org/ (Get counted!!!) > Panama, Republic of Panama> _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20051219/17d673c3/attachment-0001.sig>