xref: /freebsd/usr.sbin/daemon/daemon.8 (revision a7d4e0173c305bde611fdce33028e8caf172f1f4)
1bd06a3ecSMike Barcroft.\" Copyright (c) 1999 Berkeley Software Design, Inc. All rights reserved.
2bd06a3ecSMike Barcroft.\"
3bd06a3ecSMike Barcroft.\" Redistribution and use in source and binary forms, with or without
4bd06a3ecSMike Barcroft.\" modification, are permitted provided that the following conditions
5bd06a3ecSMike Barcroft.\" are met:
6bd06a3ecSMike Barcroft.\" 1. Redistributions of source code must retain the above copyright
7bd06a3ecSMike Barcroft.\"    notice, this list of conditions and the following disclaimer.
8bd06a3ecSMike Barcroft.\" 2. Redistributions in binary form must reproduce the above copyright
9bd06a3ecSMike Barcroft.\"    notice, this list of conditions and the following disclaimer in the
10bd06a3ecSMike Barcroft.\"    documentation and/or other materials provided with the distribution.
11bd06a3ecSMike Barcroft.\" 3. Berkeley Software Design Inc's name may not be used to endorse or
12bd06a3ecSMike Barcroft.\"    promote products derived from this software without specific prior
13bd06a3ecSMike Barcroft.\"    written permission.
14bd06a3ecSMike Barcroft.\"
15bd06a3ecSMike Barcroft.\" THIS SOFTWARE IS PROVIDED BY BERKELEY SOFTWARE DESIGN INC ``AS IS'' AND
16bd06a3ecSMike Barcroft.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17bd06a3ecSMike Barcroft.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18bd06a3ecSMike Barcroft.\" ARE DISCLAIMED.  IN NO EVENT SHALL BERKELEY SOFTWARE DESIGN INC BE LIABLE
19bd06a3ecSMike Barcroft.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20bd06a3ecSMike Barcroft.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21bd06a3ecSMike Barcroft.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22bd06a3ecSMike Barcroft.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23bd06a3ecSMike Barcroft.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24bd06a3ecSMike Barcroft.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25bd06a3ecSMike Barcroft.\" SUCH DAMAGE.
26bd06a3ecSMike Barcroft.\"
27bd06a3ecSMike Barcroft.\" $FreeBSD$
28bd06a3ecSMike Barcroft.\"
29bd06a3ecSMike Barcroft.Dd August 30, 2001
30bd06a3ecSMike Barcroft.Dt DAEMON 8
31217758f8SRuslan Ermilov.Os
32bd06a3ecSMike Barcroft.Sh NAME
33bd06a3ecSMike Barcroft.Nm daemon
34bd06a3ecSMike Barcroft.Nd run detached from the controlling terminal
35bd06a3ecSMike Barcroft.Sh SYNOPSIS
36217758f8SRuslan Ermilov.Nm
37bd06a3ecSMike Barcroft.Op Fl cf
38217758f8SRuslan Ermilov.Ar command arguments ...
39bd06a3ecSMike Barcroft.Sh DESCRIPTION
40bd06a3ecSMike BarcroftThe
41bd06a3ecSMike Barcroft.Nm
42bd06a3ecSMike Barcroftutility detaches itself from the controlling terminal and
43bd06a3ecSMike Barcroftexecutes the program specified by its arguments.
44bd06a3ecSMike Barcroft.Pp
45bd06a3ecSMike BarcroftThe options are as follows:
46217758f8SRuslan Ermilov.Bl -tag -width indent
47bd06a3ecSMike Barcroft.It Fl c
48217758f8SRuslan ErmilovChange the current working directory to the root
49217758f8SRuslan Ermilov.Pq Dq Pa / .
50bd06a3ecSMike Barcroft.It Fl f
51bd06a3ecSMike BarcroftRedirect standard input, standard output and standard error to
52bd06a3ecSMike Barcroft.Pa /dev/null .
53bd06a3ecSMike Barcroft.El
54bd06a3ecSMike Barcroft.Sh DIAGNOSTICS
55bd06a3ecSMike BarcroftThe
56bd06a3ecSMike Barcroft.Nm
57bd06a3ecSMike Barcroftutility exits 1 if an error is returned by the
58bd06a3ecSMike Barcroft.Xr daemon 3
59bd06a3ecSMike Barcroftlibrary routine, otherwise 0.
60bd06a3ecSMike BarcroftIf the command cannot be executed, an error message is displayed on
61bd06a3ecSMike Barcroftstandard error unless the
62bd06a3ecSMike Barcroft.Fl f
63bd06a3ecSMike Barcroftflag is specified.
64bd06a3ecSMike Barcroft.Sh SEE ALSO
65bd06a3ecSMike Barcroft.Xr daemon 3 ,
66bd06a3ecSMike Barcroft.Xr exec 3 ,
67bd06a3ecSMike Barcroft.Xr termios 4 ,
68bd06a3ecSMike Barcroft.Xr tty 4
69bd06a3ecSMike Barcroft.Sh HISTORY
70bd06a3ecSMike BarcroftThe
71bd06a3ecSMike Barcroft.Nm
72bd06a3ecSMike Barcroftutility first appeared in
73a7d4e017STom Rhodes.Fx 4.7 .
74