summaryrefslogtreecommitdiffstats
path: root/usr.sbin/daemon/daemon.8
diff options
context:
space:
mode:
authorcem <cem@FreeBSD.org>2016-03-02 19:10:39 +0000
committercem <cem@FreeBSD.org>2016-03-02 19:10:39 +0000
commit5f5b2719b9571954923d0973cae4e260da9bc3c3 (patch)
treedb29ee722553db322396e123533a152553d63570 /usr.sbin/daemon/daemon.8
parent486320aac47a70ba38fa073d099952762d964f7b (diff)
downloadFreeBSD-src-5f5b2719b9571954923d0973cae4e260da9bc3c3.zip
FreeBSD-src-5f5b2719b9571954923d0973cae4e260da9bc3c3.tar.gz
daemon(8): Add -t option to set process title
The default process title is taken from the argv[0] value (any particular hardlink name). Add a -t option to override the default. PR: 205016 Submitted by: Yuri <yuri@rawbw.com> No objection from: freebsd-current@ Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'usr.sbin/daemon/daemon.8')
-rw-r--r--usr.sbin/daemon/daemon.88
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/daemon/daemon.8 b/usr.sbin/daemon/daemon.8
index 87cfd98..dab9e3f 100644
--- a/usr.sbin/daemon/daemon.8
+++ b/usr.sbin/daemon/daemon.8
@@ -26,7 +26,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 13, 2013
+.Dd March 2, 2016
.Dt DAEMON 8
.Os
.Sh NAME
@@ -37,6 +37,7 @@
.Op Fl cfr
.Op Fl p Ar child_pidfile
.Op Fl P Ar supervisor_pidfile
+.Op Fl t Ar title
.Op Fl u Ar user
.Ar command arguments ...
.Sh DESCRIPTION
@@ -94,6 +95,8 @@ regardless of whether the
option is used or not.
.It Fl r
Supervise and restart the program if it has been terminated.
+.It Fl t Ar title
+Process title for the daemon to make it easily identifiable.
.It Fl u Ar user
Login name of the user to execute the program under.
Requires adequate superuser privileges.
@@ -123,7 +126,8 @@ option is useful combined with the
option as
.Ar supervisor_pidfile
contains the ID of the supervisor
-not the child. This is especially important if you use
+not the child.
+This is especially important if you use
.Fl r
in an rc script as the
.Fl p
OpenPOWER on IntegriCloud