hang-up
Finally, let's discuss the SIGUP signal, or the hang-up signal. In CentOS 7, if you run a program in the background, like the sleep command, and log out of the system, then log in again, you'll see the command or process still running. So, in CentOS 7, we can easily run background processes and log out of the SSH session, which is useful to run programs that need to run all the time or to do some heavy calculations that take hours, days, or even months. In other Linux distributions, if you log out of the system, the kernel will send the hang-up signal, or in short SIGUP, to all running background processes and terminate them. In such systems, to disable the hang-up signal that is sent to your processes, use nohup; prefix your command ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access