ports/83913: Suggestion for OpenVPN startup script

Dirk Gouders gouders at et.bocholt.fh-ge.de
Fri Jul 22 15:30:15 UTC 2005


>Number:         83913
>Category:       ports
>Synopsis:       Suggestion for OpenVPN startup script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 22 15:30:08 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Dirk Gouders
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
FH Gelsenkirchen, Abt. Bocholt
>Environment:
System: FreeBSD karga.hank.home 4.11-STABLE FreeBSD 4.11-STABLE #7: Thu Jul 21 10:03:49 CEST 2005 root at karga.hank.home:/usr/src/sys/compile/KARGA i386


	
>Description:
	The port security/openvpn comes with a strartup script that just
    kldloads if_tap but does not start openvpn.

	I'd like to suggest to rename the startup script to a name that
    says what it does (e.g. load_if_tap.sh) and add another startup
    script that really starts openvpn; I'll add the script that I
    use to start openvpn as an example:

    #!/bin/sh
    #
    # openvpn.sh - start openvpn daemon
    #
    : ${openvpn_enable="NO"}
    : ${openvpn_configfile="/usr/local/etc/openvpn/openvpn.conf"}
    : ${openvpn_dir="/usr/local/etc/openvpn"}
    #
    # Add the following line to /etc/rc.conf to enable openvpn:
    #
    # openvpn_enable="YES"
    #
    # You also need to set openvpn_configfile and openvpn_dir if on your
    # system, the configuration file and directory where keys and
    # certificates reside differ from the above settings.
    #
    . /usr/local/etc/rc.subr
    
    name=openvpn
    rcvar=`set_rcvar`
    command=/usr/local/sbin/openvpn
    
    load_rc_config openvpn
    openvpn_flags="--cd ${openvpn_dir} --daemon --config ${openvpn_configfile}"
    required_files="${openvpn_configfile}"
    run_rc_command "$1"


>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list