Рет қаралды 1,854
Creating and managing background processes, the difference between & , disown, and nohup, and the basics of signals.
Notes:
I can't put angle brackets (greater than signs) in the description so they are represented with [out], short for output operator.
Process Commands:
& - run in background
disown - abandon parent (stay alive when parent is closed),
stay alive after logout
nohup - ignore HUP signals,
abandon parent,
stay alive after logout,
put output in nohup.out
Output Supression:
All:
[out]/dev/null
Minor problems:
1[out]/dev/null
Serious problems:
2[out]/dev/null
Signals:
SIGHUP - sent when loggout
SIGTERM - tells process to quit
SIGKILL - forces termination of process (cannot ignore this SIG)