Results 1 to 2 of 2

Thread: Problems when launch icegridnode inside init.d script

  1. #1
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588

    Problems when launch icegridnode inside init.d script

    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
    Code:
    #!/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
    Last edited by xdm; 06-21-2006 at 11:11 PM.

  2. #2
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    Hi again

    i change this line

    Code:
    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:."
    to this
    Code:
    export 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 working

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problems installing icegridnode service
    By jharriot in forum Help Center
    Replies: 1
    Last Post: 11-23-2009, 02:49 AM
  2. IceStorm: how to init the subscriber?
    By Ryuga in forum Help Center
    Replies: 5
    Last Post: 02-24-2009, 05:21 AM
  3. Sequence inside a structure
    By msorensson in forum Help Center
    Replies: 1
    Last Post: 01-19-2009, 07:42 AM
  4. Set properties inside Ice::Application
    By vanjogja in forum Help Center
    Replies: 2
    Last Post: 01-25-2008, 05:57 AM
  5. remote node server launch problem...
    By kishore in forum Help Center
    Replies: 1
    Last Post: 04-16-2007, 06:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •