Hello,
I am trying to write a tuxedo monitoring daemon.
One problem I'm currently facing is that when tuxedo is being stoped example
tmadmin :
stop -y -w 5 -c
the monitoring daemon loses the connection to tuxedo... which is logical to me since tuxedo is stoped.
but when booting again.
tmadmin:
boot -y
I still can't reconnect. tpinit then get's this error once tux is started again :
Can't send request to service .TMIB
Tperrno = 7
errno: 7
tpinit failed: TPEOS - operating system error
the connection code is :
TPINIT * tpinfo = (TPINIT*)tpalloc((char *)"TPINIT",NULL,TPINITNEED(20));
strcpy(tpinfo->cltname, "tpsysadm");
if (tpinit(tpinfo) == -1)
{
printf("errno: %ld\n", tperrno);
fprintf(stderr, "tpinit failed: %s\n", tpstrerror(tperrno));
int tret = tpterm();
if (tret < 0)
{
cout << "tprem : " << tret << endl;
fprintf(stderr, "tpinit failed: %s\n", tpstrerror(tperrno));
}
tpfree((char *)tpinfo);
return -1;
}
when restaring the daemon the connection can be re-established. Is there any way to re-establish without having to restart my daemon process ?
kind regards,
Gery
Edited by: tuxit on 16.06.2010 06:15