Link

Daemon

reference:

Table of contents

  1. Session
  2. crond

Session

When the user tries to exit from the session:

  1. the OS sends SIGHUP to the session (the default behavior of a process receiving SIGHUP is to exit)
  2. the session send SIGHUP to all foreground processes (this is the default behavior; shopt | grep huponexit defaults to off)
  3. 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