daemon(8) BSD System Manager's Manual daemon(8)NAMEdaemon - run detached from the controlling terminal
SYNOPSISdaemon [-cf] command arguments ...
DESCRIPTION
The daemon utility detaches itself from the controlling terminal and
exec(3)'s the program specified by its arguments.
The options are as follows:
-c Change the current working directory to the root (``/'').
-f Redirect standard input, standard output and standard error to
/dev/null.
The daemon utility exits 1 if an error is returned by the daemon(3) li-
brary routine, otherwise 0. If the command cannot be exec'd, an error
message is displayed on standard error unless the -f flag is specified.
SEE ALSOdaemon(3), termios(4), tty(4).
3rd Berkeley Distribution August 14, 1996 1