Bug 205016 - The new command line option to set the daemon(8) process title
Summary: The new command line option to set the daemon(8) process title
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Conrad Meyer
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-12-04 14:00 UTC by Yuri Victorovich
Modified: 2016-03-02 19:11 UTC (History)
1 user (show)

See Also:


Attachments
patch (1.76 KB, patch)
2015-12-04 14:00 UTC, Yuri Victorovich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2015-12-04 14:00:27 UTC
Created attachment 163841 [details]
patch

When there are many daemons running, it might not be easy to see what the particular daemon is for.

The new "-t title" option allows to set the process title.
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-03-02 19:11:36 UTC
A commit references this bug:

Author: cem
Date: Wed Mar  2 19:10:40 UTC 2016
New revision: 296321
URL: https://svnweb.freebsd.org/changeset/base/296321

Log:
  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

Changes:
  head/usr.sbin/daemon/daemon.8
  head/usr.sbin/daemon/daemon.c
Comment 2 Conrad Meyer freebsd_committer freebsd_triage 2016-03-02 19:11:49 UTC
Committed in r296321.  Thanks for the patch.