Archived
This forum has been archived. Please start a new discussion on GitHub.
Problems when launch icegridnode inside init.d script
xdm
La Coruña, Spain
in Help Center
Hi all i trying to launch icegridnode iside init.d scripts but when try to star a java service it not found the IceBox.Server
if i do the same inside a normal bash script it works fine
any ideas where the problem can be?
i try to define the CLASSPATH inside my scripts but results are the same, the java services can found IceBox.Server even when Ice.jar is in CLASSPATH
this is in a gentoo machine
and this is the init.d script
Icegridnode start correctly with out errors but when i want star a java service the problem occurs
Thanks in advance
if i do the same inside a normal bash script it works fine
any ideas where the problem can be?
i try to define the CLASSPATH inside my scripts but results are the same, the java services can found IceBox.Server even when Ice.jar is in CLASSPATH
this is in a gentoo machine
and this is the init.d script
#!/sbin/runscript # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/files/sshd.rc6,v 1.19 2006/02/28 00:09:52 vapier Exp $ depend() { use logger dns need net } start() { JAVA_HOME="/opt/sun-jdk-1.5.0.06" CLASSPATH="/opt/db/lib/db.jar:/opt/Ice-3.0.1/lib/Ice.jar:/opt/lucene/lucene.jar:/home/pepone/hydra/lib/oz.domains.jar:/home/pepone/hydra/lib/oz.base.jar:/home/pepone/hydra/lib/oz.files.jar:/home/pepone/hydra/lib/oz.searchs.jar:." echo $CLASSPATH ebegin "Starting icegridnode" /opt/Ice-3.0.1/bin/icegridnode --Ice.Config=/home/pepone/hydra/etc/linux/config.titanio --daemon eend $? } stop() { ebegin "Stopping ${SVCNAME}" /opt/Ice-3.0.1/bin/icegridadmin --Ice.Default.Locator="IceGrid/Locator:tcp -h 192.168.0.20 -p 14000" -e "node shutdown titanio" eend $? } reload() { ebegin "Reloading ${SVCNAME}" stop start eend $? }
Icegridnode start correctly with out errors but when i want star a java service the problem occurs
Thanks in advance
0
Comments
-
Hi again
i change this lineCLASSPATH="/opt/db/lib/db.jar:/opt/Ice-3.0.1/lib/Ice.jar:/opt/lucene/lucene.jar:/home/pepone/hydra/lib/oz.domains.jar:/home/pepone/hydra/lib/oz.base.jar:/home/pepone/hydra/lib/oz.files.jar:/home/pepone/hydra/lib/oz.searchs.jar:."
to thisexport CLASSPATH="/opt/db/lib/db.jar:/opt/Ice-3.0.1/lib/Ice.jar:/opt/lucene/lucene.jar:/home/pepone/hydra/lib/oz.domains.jar:/home/pepone/hydra/lib/oz.base.jar:/home/pepone/hydra/lib/oz.files.jar:/home/pepone/hydra/lib/oz.searchs.jar:."
now is working0