Bug 221822 - stunnel pid.conf using conf.d infrastructure doesn't start
Summary: stunnel pid.conf using conf.d infrastructure doesn't start
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Ryan Steinmetz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-26 04:39 UTC by Kamil Choudhury
Modified: 2018-02-20 13:11 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kamil Choudhury 2017-08-26 04:39:12 UTC
Version: 5.42

[.] Reading configuration from file /usr/local/etc/stunnel/conf.d/pid.conf
[.] UTF-8 byte order mark not detected
[!] /usr/local/etc/stunnel/conf.d/pid.conf:1: "pid = /var/run/stunnel.pid": Specified option name is not valid here
[!] /usr/local/etc/stunnel/stunnel.conf:39: Failed to include directory "/usr/local/etc/stunnel/conf.d"
/usr/local/etc/rc.d/stunnel: WARNING: failed to start stunnel

Removing the u/l/e/stunnel/conf.d/pid.conf fixes the error
Comment 1 Walter Schwarzenfeld freebsd_triage 2018-02-06 20:22:54 UTC
We have version 5.44. Problem still exists.
Comment 2 Ryan Steinmetz freebsd_committer freebsd_triage 2018-02-06 20:31:30 UTC
(In reply to w.schwarzenfeld from comment #1)
Asked stunnel developer for assistance on fixing this in stunnel itself.
Comment 3 Ryan Steinmetz freebsd_committer freebsd_triage 2018-02-07 13:22:17 UTC
Please try renaming pid.conf to 00-pid.conf

Thanks!
Comment 4 Ryan Steinmetz freebsd_committer freebsd_triage 2018-02-19 17:11:10 UTC
(In reply to Ryan Steinmetz from comment #3)
Any thoughts?  If you can confirm this is good for you, I will incorporate the changes into the port.
Comment 5 Walter Schwarzenfeld freebsd_triage 2018-02-20 01:08:37 UTC
Seems to work.
Comment 6 Kamil Choudhury 2018-02-20 01:17:14 UTC
Looks good -- apologies for the delay.
Comment 7 commit-hook freebsd_committer freebsd_triage 2018-02-20 13:11:36 UTC
A commit references this bug:

Author: zi
Date: Tue Feb 20 13:11:22 UTC 2018
New revision: 462395
URL: https://svnweb.freebsd.org/changeset/ports/462395

Log:
  - Resolve pid issue at startup due to conf.d parsing order
  - Bump PORTREVISION

  PR:		221822
  Reported by:	Kamil Choudhury

Changes:
  head/security/stunnel/Makefile
  head/security/stunnel/pkg-plist