*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> daemon (8)              
Title
Content
Arch
Section
 

DAEMON(8)

Contents


NAME    [Toc]    [Back]

     daemon -- run detached from the controlling terminal

SYNOPSIS    [Toc]    [Back]

     daemon [-cf] command arguments ...

DESCRIPTION    [Toc]    [Back]

     The daemon utility detaches itself from the controlling terminal and executes
 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.

DIAGNOSTICS    [Toc]    [Back]

     The daemon utility exits 1 if an error is returned by the daemon(3)
     library routine, otherwise 0.  If the command cannot be executed, an
     error message is displayed on standard error unless the -f flag is specified.

SEE ALSO    [Toc]    [Back]

      
      
     daemon(3), exec(3), termios(4), tty(4)

HISTORY    [Toc]    [Back]

     The daemon utility first appeared in FreeBSD 4.7.


FreeBSD 5.2.1			August 30, 2001 		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
ctermid Linux get controlling terminal name
tty Linux controlling terminal
tty HP-UX controlling terminal interface
tcgetsid NetBSD get session ID associated with a controlling terminal
tty IRIX controlling terminal interface
ctermid Tru64 Generate the pathname for the controlling terminal
clearok Tru64 Routines for controlling output options for a Curses terminal
nonl Tru64 Routines for controlling output options for a Curses terminal
scrollok Tru64 Routines for controlling output options for a Curses terminal
setscrreg Tru64 Routines for controlling output options for a Curses terminal
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service