Daemon processes can be affected by the terminal they were started from. Consider the following daemon startup script: echo "Starting Console Log Daemon" osmcat /dev/osm > /var/spool/console & If this script is started from a terminal (other than the console), problems can arise when the person who started it logs off, hits break or when '''osmcat''' tries to write to standard error (or to read from standard input) after the user starting logs off. '''Therefore:''' Isolate daemon processes from terminals. If '''osmcat''' is badly designed, all of the following safeguards are necessary to ensure it functions correctly when started from a terminal: * redirect '''stdin, stdout, stderr''' * ignore signals 1, 2, 3 and 15 (unless 15 is used to trigger graceful shutdown) echo "Starting Console Log Daemon" trap '' 1 2 3 15 osmcat /dev/osm > /var/spool/console 2>/dev/console