This article explains the commands used to shut down a Tuxedo server.
Problem:
The command tmshutdown is used to stop a Tuxedo server. If the Tuxedo server is made with Micro Focus COBOL services, it is necessary to call the function cobtidy() to empty buffers, to close files, to free any data areas allocated by the COBOL system.
The command tmshutdown -i displays the following execution error:
file 'mfini'error code: 119, pc=0, call=1, seg=0119 Name is not unique (binding symbol 'mfini')
Is it necessary to call the function atexit();?
Resolution:
In the current directory that is used to create the Tuxedo server, it is necessary to create two files mainexit.h and microfocus.c that are as follows:
- int i ;
- char c[60];
- int atexit(void (*function)(void));
- void microfocus();
- i = atexit(microfocus);
- void microfocus(void)
- {
- cobexit();
- }
- ALTCFLAGS=-DTMMAINEXIT
- export ALTCFLAGS