[Bug 200914] [PATCH] net/relayd rc.d script doesn't check configuration validity
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jun 16 16:40:56 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200914
Bug ID: 200914
Summary: [PATCH] net/relayd rc.d script doesn't check
configuration validity
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Keywords: patch
Severity: Affects Many People
Priority: ---
Component: Individual Port(s)
Assignee: mm at FreeBSD.org
Reporter: dam at my.gd
Assignee: mm at FreeBSD.org
Flags: maintainer-feedback?(mm at FreeBSD.org)
Keywords: patch
Created attachment 157808
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=157808&action=edit
patch rc.d script to check configuration validity
The init script for net/relayd does not check the configuration file for errors
before trying to restart the daemon.
As such, it is prone to errors when a tired admin breaks his config, invokes
the script to restart relayd, and ends up with a service outage.
This small patch inspired by nginx's rc.d adds support for configuration sanity
checks before start, reload and restart actions.
It simply issues a relayd -n to ensure the configuration file is sane.
Validated working on 8-STABLE using relayd-5.5.20140810
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list