Bug 152565 - port dns/nsd "status" argument to init script is broken
Summary: port dns/nsd "status" argument to init script is broken
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Baptiste Daroussin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-25 05:10 UTC by eli
Modified: 2010-11-25 16:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eli 2010-11-25 05:10:09 UTC
When attempting to get the service status with the command "/usr/local/etc/rc.d/nsd status", the script always reports the service is down.

The problem is, it appears, due to the fact that the command does not match the procname of the resulting process.

Fix: 

The simple fix would be to add the following to the rc script.

procname=/usr/local/sbin/nsd

Adding this makes the status command work for me.
How-To-Repeat: /usr/local/etc/rc.d/nsd start
/usr/local/etc/rc.d/nsd status
Comment 1 Edwin Groothuis freebsd_committer 2010-11-25 05:10:13 UTC
Maintainer of dns/nsd,

Please note that PR ports/152565 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/152565

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer 2010-11-25 05:10:16 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Baptiste Daroussin freebsd_committer 2010-11-25 10:06:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bapt

I'll take it.
Comment 4 dfilter service freebsd_committer 2010-11-25 16:04:06 UTC
bapt        2010-11-25 16:04:00 UTC

  FreeBSD ports repository

  Modified files:
    dns/nsd              Makefile distinfo 
    dns/nsd/files        nsd.in 
  Log:
  - fix status command in rc file
  - while here remove MD5 entry
  bump port revision
  
  PR:             ports/152565
  Submitted by:   eli <elij.mx _at_ gmail.com>
  Approved by:    Jaap Akkerhuis <jaap _at_ nlnetlabs.nl>
  
  Revision  Changes    Path
  1.51      +1 -1      ports/dns/nsd/Makefile
  1.35      +0 -1      ports/dns/nsd/distinfo
  1.8       +2 -1      ports/dns/nsd/files/nsd.in
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Baptiste Daroussin freebsd_committer 2010-11-25 16:04:53 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!