Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jun 2015 16:40:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 200914] [PATCH] net/relayd rc.d script doesn't check configuration validity
Message-ID:  <bug-200914-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: dam@my.gd
          Assignee: mm@FreeBSD.org
             Flags: maintainer-feedback?(mm@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-200914-13>