What's the difference between nohup and a daemon?
问题 What are the implications of running a script as a daemon versus using nohup? I know what the difference is in terms of forking processes etc., but what impact does that have on my script? 回答1: The nohup command is the poor man's way of running a process as a daemon. As Bruno Ranschaert noted, when you run a command in an interactive shell, it has a controlling terminal and will receive a SIGHUP (hangup) signal when the controlling process (typically your login shell) exits. The nohup command