[Bug 213463] [patch] isc-dhcpd rc script does not play nice with service -e

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Oct 13 21:20:36 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213463

            Bug ID: 213463
           Summary: [patch] isc-dhcpd rc script does not play nice with
                    service -e
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: 000.fbsd at quip.cz
          Keywords: patch

Created attachment 175723
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=175723&action=edit
Patch to play nice with service -e

As I reported in PR #207811
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207811
Command "service -e" does not show some services. isc-dhcpd is one of them,
because service -e are using eval on some grep output.

name=${name##*/isc-} is not properly evaluated.

There is easy fix I found in rc.d/openvpn and added the same things in to
rc.d/isc-dhcpd.

There is also problem with function names starting with word "rcvar":
rcvar_chuser
rcvar_chroot
rcvar_pidnleases
rcvar_rooted

They are renamed to 
_rcvar_chuser
_rcvar_chroot
_rcvar_pidnleases
_rcvar_rooted

You can choose another named not starting with "rcvar"

PS: I am no sure if it is right or not - current isc-dhcpd has load_rc_config
${name} twice. One is after paranoia=yes at the begining of the file and one at
the end of file.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list