Unix Shell - Redhat /etc/init.d problem

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > February 2007 > Redhat /etc/init.d problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Redhat /etc/init.d problem
Petterson Mikael

2007-02-21, 1:18 pm

I run cruisecontrol (cc) as a daemon on my redhat linux box.

Whem I do a 'init 6' and the machine comes up cc does not start. I have
S* and K* scripts like:

> ./rc.d/init.d/cruisecontrol
> ./rc.d/rc0.d/K05cruisecontrol
> ./rc.d/rc1.d/K05cruisecontrol
> ./rc.d/rc2.d/K05cruisecontrol
> ./rc.d/rc3.d/S50cruisecontrol
> ./rc.d/rc4.d/S99cruisecontrol
> ./rc.d/rc5.d/S99cruisecontrol
> ./rc.d/rc6.d/K05cruisecontrol
> ./init.d/cruisecontrol
> ./rc0.d/K05cruisecontrol
> ./rc1.d/K05cruisecontrol
> ./rc2.d/K05cruisecontrol
> ./rc3.d/S50cruisecontrol
> ./rc4.d/S99cruisecontrol
> ./rc5.d/S99cruisecontrol
> ./rc6.d/K05cruisecontrol



If I do:

ps -ef | grep java

> eraonel 3989 3907 0 15:34 pts/0 00:00:00 grep java




If I start it manually it works fine:

> /etc/init.d/cruisecontrol start
> cruisecontrol started with jmx on port 8082



If I do:

ps -ef | grep java

> ps -ef | grep java
> eraonel 4344 1 0 14:24 pts/0 00:00:13

/app/jdk/1.4.2_08/bin/java -Xms256m -Xmx512m -cp
/app/jdk/1.4.2_08/lib/tools.jar:/usr/local/bin/cruisecontrol/lib/cruisecontrol.jar:/usr/local/bin/cruisecontrol/lib/cruisecontrol-launcher.jar:/usr/local/bin/cruisecontrol/lib/log4j.jar:/usr/local/bin/cruisecontrol/lib/jdomroot
9796 4200 0 15:20 pts/0 00:00:00 grep java


Any ideas what this could be?

cheers,

//mikael
Icarus Sparry

2007-02-21, 1:18 pm

On Wed, 21 Feb 2007 15:50:32 +0100, Petterson Mikael wrote:

> I run cruisecontrol (cc) as a daemon on my redhat linux box.
>
> Whem I do a 'init 6' and the machine comes up cc does not start. I have
> S* and K* scripts like:
>
>
>
> If I do:
>
> ps -ef | grep java
>
>
>
>
> If I start it manually it works fine:
>
>
>
> If I do:
>
> ps -ef | grep java
>
> /app/jdk/1.4.2_08/bin/java -Xms256m -Xmx512m -cp
> /app/jdk/1.4.2_08/lib/tools.jar:/usr/local/bin/cruisecontrol/lib/

cruisecontrol.jar:/usr/local/bin/cruisecontrol/lib/cruisecontrol-
launcher.jar:/
usr/local/bin/cruisecontrol/lib/log4j.jar:/usr/local/bin/cruisecontrol/lib/
jdomroot
> 9796 4200 0 15:20 pts/0 00:00:00 grep java
>
>
> Any ideas what this could be?
>


By tradition run level 6 is used to reboot the machine.

Scripts which start with 'K' are invoked with the 'stop' parameter, whilst
scripts which start with an 'S' are invoked with a 'start' parameter.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com