Search results

  1. B

    How to detect SIGTERM originated from halt of system?

    I have a signal handler implemented to receive the signal SIGTERM. However, I cannot find a way to determine if the SIGTERM originated from a Halt of the system. I looked at the output from the runlevel command, but it's "N N". I was hoping I'd see "3 0", where 0 is the runlevel for Halt. This...
Top