Bug 245095

Summary: security/tinc-devel: Missing RC status command support
Product: Ports & Packages Reporter: gerrit
Component: Individual Port(s)Assignee: Dirk Meyer <dinoex>
Status: Closed FIXED    
Severity: Affects Some People Keywords: feature, needs-qa
Priority: --- Flags: dinoex: maintainer-feedback+
dinoex: merge-quarterly-
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
add status support to service none

Description gerrit 2020-03-27 10:11:54 UTC
Created attachment 212748 [details]
add status support to service

When tincd nets are configured, service status does not work:

root@f10:~ # grep tinc /etc/rc.conf
tincd_enable="YES"
tincd_cfg="hiq"

root@f10:~ # /usr/local/etc/rc.d/tincd status
tincd is not running.

root@f10:~ # tinc -n hiq pid
289


I made changes to rc.d/tincd (diff attached) to add proper status capabilities:

root@f10:~ # service tincd status
tincd for hiq running with pid
289


Basically the same will probably apply to security/tinc.
Comment 1 Dirk Meyer freebsd_committer freebsd_triage 2020-03-27 14:16:21 UTC
Thanks, patch is in testing ....

merge-quarterly should not be needed.
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-03-27 16:03:46 UTC
A commit references this bug:

Author: dinoex
Date: Fri Mar 27 16:02:49 UTC 2020
New revision: 529266
URL: https://svnweb.freebsd.org/changeset/ports/529266

Log:
  - fix "service tincd status" for multiple instances
  PR:		245095
  Submitted by:	errit@weinberg2.de

Changes:
  head/security/tinc/Makefile
  head/security/tinc/files/tincd.in
  head/security/tinc-devel/Makefile
  head/security/tinc-devel/files/tincd.in
Comment 3 Dirk Meyer freebsd_committer freebsd_triage 2020-03-27 16:05:37 UTC
committed with changes

the status message is now in sync with other scripts