Brett,

Brett Davis wrote on 17.06.2009 18:30:
> We have a CORBA application written in Java that we want to always be
> running (it watches for MAC address change notifications and processes
> them). However, it's having problems during the nightly backup fo the
> SSdb to the standby servers as it crashes and doesn't come back up. I'm
> sure there's a way that we could have Solaris Daemonize the process and
> then cause it to restart when it goes down, but I figured that making a
> file in the /$SPECROOT/lib/SDPM/partstlist directory would be a more
> graceful way to accomplish this.
>
> Is this the way we should go about implementing our application so that
> it would automatically start and daemonize when Spectrum starts, and
> handle the hiccup that occurs with server backups? Is there any
> documentation on this?
>   
it most definitely is the proper way for Spectrum, we use it for a Java 
app too. You need to create a .idb file in the partslist directory and 
then processd will take care of it. Ours looks like this:

    # CONTINUITY SLA Monitor.
    PARTNAME;AMD;
    APPNAME;CONTINUITY SLA Monitor;
    WORKPATH;$SPECROOT/SS;
    ADMINPRIVS;n;
    AUTORESTART;y;
    AUTOBOOTSTART;y;
    #TICKETUSER;kloeber;
    NUMPROCS;1; // one per host
    RETRYTIMEOUT;0; // seconds
    RETRYMAX;0;     // retries
    STARTPRIORITY;30;
    SERVERPROCESS;y;
    LOGNAMEPATH;$WORKPATH/AMD.OUT;
    ARGV;$SPECROOT/Java/bin/java -jar AlarmModeDispatcher.jar
    spectrum9-w2003; //

The biggest problem is to get the correct domain name in as a parameter 
for your app (assuming you need it). If this is part of an installable 
MM you will need a .cus script which creates the .idb file during 
installation, setting the domain name.

The syntax is described in "Distributed SpectroSERVER, Administrator 
Guide", 2270.pdf.

Thomas

-- 
Intelligent Communication Software Vertriebs GmbH
Firmensitz: Kistlerhof Str. 111, 81379 München
Registergericht: Amtsgericht München, HRB 88283
Geschäftsführer: Albert Fuss


---
To unsubscribe from spectrum, send email to lists...@unc.edu with the body: 
unsubscribe spectrum arch...@mail-archive.com
begin:vcard
fn;quoted-printable:Thomas Kl=C3=B6ber
n;quoted-printable:Kl=C3=B6ber;Thomas
org:ICS GmbH
adr;quoted-printable:;;Leibnizpark 1;R=C3=B6srath;NRW;51503;Germany
email;internet:kloe...@ics.de
title:Dipl-Inform
tel;work:++49-2205-895558
tel;fax:++49-2205-895625
note:VoIP: 032221318672
x-mozilla-html:TRUE
url:www.ics.de
version:2.1
end:vcard

Reply via email to