summaryrefslogtreecommitdiff
path: root/security/openvpn-devel/files/openvpn.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'security/openvpn-devel/files/openvpn.sh.in')
-rw-r--r--security/openvpn-devel/files/openvpn.sh.in12
1 files changed, 10 insertions, 2 deletions
diff --git a/security/openvpn-devel/files/openvpn.sh.in b/security/openvpn-devel/files/openvpn.sh.in
index 050984cdef9c..8fa3bace8823 100644
--- a/security/openvpn-devel/files/openvpn.sh.in
+++ b/security/openvpn-devel/files/openvpn.sh.in
@@ -97,8 +97,16 @@ stop_postcmd()
rm -f "$pidfile" || warn "Could not remove $pidfile."
}
-# support SIGHUP to reparse configuration file
-extra_commands="reload"
+softrestart()
+{
+ sig_reload=USR1 run_rc_command reload
+ exit $?
+}
+
+# reload: support SIGHUP to reparse configuration file
+# softrestart: support SIGUSR1 to reconnect without privileges
+extra_commands="reload softrestart"
+softrestart_cmd="softrestart"
# pidfile
pidfile="/var/run/${name}.pid"