Daemon
reference:
Table of contents
Session
When the user tries to exit from the session:
- the OS sends SIGHUP to the session (the default behavior of a process receiving SIGHUP is to exit)
- the session send SIGHUP to all foreground processes (this is the default behavior;
shopt | grep huponexit
defaults tooff
) - the session exits
nohup [command] &
- stop receiving SIGHUP
- close the STDIN
- redirect STDOUT and STDERR to the file
nohup.out
crond
- global configuration:
/etc/crontab
crontab
command
service crond start
service crond restart
service crond status
service crond stop
service crond reload