Wouldn't it be easier to adjust your app so that it catches whatever signal it gets sent by the shutdown process? (Usually, it will be signal 1 - SIGHUP).
Then you can make your app do the right thing when it receives that signal.
Then you can make your app do the right thing when it receives that signal.
Statistics: Posted by BigRedMailbox — Wed Jan 01, 2025 5:45 pm