Hello,
My company uses a phantom process that runs using the PHANTOM BRIEF. It's a continuous program that compares the current epoch with the epoch +180 (seconds) to determine when the next iteration will kick off. After 8 or more months of running every 3 minutes, the phantom unexpectedly self-terminates. It's a business-critical process that needs to be running at all times. It stopped unexpectedly over the weekend and resulted in a lot of issues. I've been scouring the forums for a few hours to see if I can figure out some way to prevent it from happening, but I can't identify the root cause.
The program has had read/write logging set up for several years. Any error opening files or writing to them is logged to a custom flat file on a network drive, but no logs have been written there the past 3 times the phantom terminated. No logs were written to PH--though I'm not sure if that needs manual setup. The errlog file only displays the current day's user errors, preventing me from seeing the error on Friday.
How would I log the actual termination of the phantom process, and possibly the stack trace to determine which data it was accessing when it terminated? If possible, I'd like to write logs to the network drive to mitigate risk when dealing directly with the Linux production server. And how would I detect that the process terminated and then automatically restart it? We're on UV 11.2 on RHEL 7.9 and use U2 BDK 4.3 for writing programs. TIA




