[OpenWrt-Devel] [PATCH] openvpn: added service_triggers() to init script

nemesis at ninux.org nemesis at ninux.org
Thu Jan 7 13:45:55 EST 2016


From: Federico Capoano <nemesis at ninux.org>

Follow up of #21469
This patch enables autoreloading openvpn via procd.

Signed-off-by: Federico Capoano <nemesis at ninux.org>
---
 package/network/services/openvpn/files/openvpn.init | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/network/services/openvpn/files/openvpn.init b/package/network/services/openvpn/files/openvpn.init
index 994973b..342e5d8 100644
--- a/package/network/services/openvpn/files/openvpn.init
+++ b/package/network/services/openvpn/files/openvpn.init
@@ -152,3 +152,7 @@ start_service() {
 		fi
 	done
 }
+
+service_triggers() {
+	procd_add_reload_trigger openvpn
+}
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list