by Andrew >> Fri, 6 Aug 2004 0:40:05 GMT
I'm trying to find a way to shut the appServer down (singleUser appServer) through user app logic.
I've written a non-Gui app that scans all processes, making sure that the only processes left are the appServer and self.
In the epilog, of this apps init method, I've tried 2 things:
1. run the terminate instruction to kill the app.
then force the appServer process to sign off like this appServerProcess.node.system.forceOffUser (appServerProcess.node, appServer);
2. force the appServer process to sign off like this appServerProcess.node.system.forceOffUser (appServerProcess.node, appServer);
then run the terminate instruction to kill the app.
Option 1 - I'm guessing it never gets to the forceOffUser part, as self has been terminated??
Option 2 - Doesn't result in the appServer shutting down, in fact, it leaves the appServer in a state where no further connections can be established.
jommsg:
2004/08/06 12:29:39 00900-d18 Jom: backgroundProcessException, nodeStatus= 2 error= 1205
2004/08/06 12:29:40 00900-d18 Jom: backgroundProcessException, backgroundEvent= 1
2004/08/06 12:29:40 00900-d18 Jom: backgroundProcessException, APINumber= 21 2004/08/06 12:29:40 00900-d18 Jom: backgroundProcessException, oid=[187.1]
Anyone have any ideas how to go about this?