[Bug 208534] security/openvpn rc.d script breaks "service -R" on 10.3-RELEASE

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Apr 4 21:54:16 UTC 2016


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

            Bug ID: 208534
           Summary: security/openvpn rc.d script breaks "service -R" on
                    10.3-RELEASE
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: mandree at FreeBSD.org
          Reporter: allan at saddi.com
             Flags: maintainer-feedback?(mandree at FreeBSD.org)
          Assignee: mandree at FreeBSD.org

On 10.3-RELEASE, performing a "service -R" stops with the following error:

  /usr/sbin/service: ERROR: USAGE: load_rc_config_var name var

when openvpn is installed.

I've narrowed it down to the way the name variable is defined in the rc script:

  name="${name##*/}"

I realize openvpn does it this way to support multiple instances.

/usr/sbin/service under 10.3-RELEASE has an additional check now that trips
over this:

                        if [ -n "$rcvar" ]; then
                                load_rc_config_var ${name} ${rcvar}
                        fi

For now, I am working around this issue by editing the rc script and setting
name directly to "openvpn".

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


More information about the freebsd-ports-bugs mailing list