CVSROOT:        /cvs
Module name:    ports
Changes by:     [email protected]    2025/12/07 08:55:26

Modified files:
        net/openvpn    : Makefile 
        net/openvpn/pkg: README openvpn.rc 

Log message:
Document the usage of --daemon in the openvpn rc script

Hardcoding --daemon is necessary so that openvpn goes into the
background by default, whatever the admin sets in openvpn_flags or their
config file.  So document how to pass an optional argument to --daemon,
which is mainly useful when you're running multiple instances (eg IPv4
vs IPv6 and/or UDP vs TCP).

Since there's another ambiguity in the cli arguments parsing,
explicitely tell users to use --config before the config file. Setting
only "openvpn_flags=/config/file" in rc.conf.local cannot work because
the file name would be misinterpreted as the optional argument
to --daemon.

Ambiguity pointed out by and argued with kn@ who proposed a different
approach.

"I think that's fine" sthen@

Reply via email to