aboutsummaryrefslogtreecommitdiff
path: root/documentation/manual-pages/ja/man8/daemon.8
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/manual-pages/ja/man8/daemon.8')
-rw-r--r--documentation/manual-pages/ja/man8/daemon.885
1 files changed, 85 insertions, 0 deletions
diff --git a/documentation/manual-pages/ja/man8/daemon.8 b/documentation/manual-pages/ja/man8/daemon.8
new file mode 100644
index 0000000000..481caf72b3
--- /dev/null
+++ b/documentation/manual-pages/ja/man8/daemon.8
@@ -0,0 +1,85 @@
+.\" Copyright (c) 1999 Berkeley Software Design, Inc. All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\" 3. Berkeley Software Design Inc's name may not be used to endorse or
+.\" promote products derived from this software without specific prior
+.\" written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY BERKELEY SOFTWARE DESIGN INC ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL BERKELEY SOFTWARE DESIGN INC BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" %FreeBSD: src/usr.sbin/daemon/daemon.8,v 1.5 2004/07/07 19:57:16 ru Exp %
+.\"
+.\" $FreeBSD$
+.Dd August 30, 2001
+.Dt DAEMON 8
+.Os
+.Sh 名称
+.Nm daemon
+.Nd 制御端末から切り離して実行する
+.Sh 書式
+.Nm
+.Op Fl cf
+.Op Fl p Ar pidfile
+.Ar command arguments ...
+.Sh 解説
+.Nm
+ユーティリティは、制御端末から自分自身を切り離し、
+引数で指定されたプログラムを実行します。
+.Pp
+オプションは次の通りです:
+.Bl -tag -width indent
+.It Fl c
+現在の作業ディレクトリをルートディレクトリ
+.Pq Dq Pa /
+に変更します。
+.It Fl f
+標準入力、標準出力ならびに標準エラー出力を
+.Pa /dev/null
+にリダイレクトします。
+.It Fl p Ar file
+生成されたプロセスの ID を
+.Ar file
+に書き込みます。
+ファイルはプロセスが実際に実行される直前に作成され、
+(実行が失敗した場合には削除されますが) プロセスが終了した後も残ることに
+注意して下さい。
+.El
+.Sh 診断
+.Nm
+ユーティリティは
+.Xr daemon 3
+ライブラリルーチンがエラーを返した場合は 1 で終了し、
+.Ar pidfile
+が指定されたけれどオープンできなかった場合は 2 で終了し、
+エラーを返さなかった場合は 0 で終了します。
+指定したコマンドが実行できなかった場合、
+.Fl f
+フラグが指定されていなければ標準エラー出力にエラーメッセージを
+表示します。
+.Sh 関連項目
+.Xr daemon 3 ,
+.Xr exec 3 ,
+.Xr termios 4 ,
+.Xr tty 4
+.Sh 歴史
+.Nm
+ユーティリティは
+.Fx 4.7
+で初めて登場しました。