Bug 205016

Summary: The new command line option to set the daemon(8) process title
Product: Base System Reporter: Yuri Victorovich <yuri>
Component: binAssignee: Conrad Meyer <cem>
Status: Closed FIXED    
Severity: Affects Only Me CC: cem
Priority: --- Keywords: patch
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

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.