Date: Fri, 22 Jul 2005 17:31:07 +0200 (CEST) From: Dirk Gouders <gouders@et.bocholt.fh-ge.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/83913: Suggestion for OpenVPN startup script Message-ID: <200507221531.j6MFV7UI000476@karga.hank.home> Resent-Message-ID: <200507221530.j6MFU9OP069321@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507221531.j6MFV7UI000476>