summaryrefslogtreecommitdiff
path: root/security/openvpn/files/openvpn.in
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2016-08-24 22:33:25 +0000
committerMatthias Andree <mandree@FreeBSD.org>2016-08-24 22:33:25 +0000
commitc12684409a255a137011fc41496b040efb3252eb (patch)
treec9edb7419ff29ca957920774f6610230cc403deb /security/openvpn/files/openvpn.in
parentUpdate devel/elixir-swarm to version 0.4.4. (diff)
Update to new upstream bugfix release 2.3.12, add "stats" to rc script.
* Upstream changes: <https://community.openvpn.net/openvpn/wiki/ChangesInOpenvpn23#OpenVPN2.3.12> * The cmocka-based unit tests are currently disabled, too much hassle and deps to get them running. * Add patch-configure to drop the unit-test related warnings. * Extend run control script to understand the "stats" argument, to send SIGUSR2 to the process, contributed by Anton Yuzhaninov (with one additional line fold). * Drop patch-629baad8, no longer needed. * Refresh other patches with make clean extract do-patch makepatch
Notes
Notes: svn path=/head/; revision=420825
Diffstat (limited to 'security/openvpn/files/openvpn.in')
-rw-r--r--security/openvpn/files/openvpn.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/security/openvpn/files/openvpn.in b/security/openvpn/files/openvpn.in
index ff21fad80898..6eab55e69ea6 100644
--- a/security/openvpn/files/openvpn.in
+++ b/security/openvpn/files/openvpn.in
@@ -101,10 +101,18 @@ softrestart()
exit $?
}
+openvpn_stats()
+{
+ sig_reload=USR2
+ run_rc_command ${rc_prefix}reload $rc_extra_args
+}
+
# reload: support SIGHUP to reparse configuration file
# softrestart: support SIGUSR1 to reconnect without superuser privileges
-extra_commands="reload softrestart"
+# stats: support SIGUSR2 to write statistics to the syslog
+extra_commands="reload softrestart stats"
softrestart_cmd="softrestart"
+stats_cmd="openvpn_stats"
# pidfile
pidfile="/var/run/${name}.pid"