[OpenWrt-Devel] [PATCH] openvpn: added service_triggers() to init script
nemesis at ninux.org
nemesis at ninux.org
Thu Jan 7 10:53:23 EST 2016
From: Federico Capoano <nemesis at ninux.org>
Follow up of #21469
This patch enables autoreloading openvpn via procd.
For more information see: https://dev.openwrt.org/ticket/21469For more information see: https://dev.openwrt.org/ticket/21469
Signed-off-by: Federico Capoano <nemesis at ninux.org>
---
package/network/services/openvpn/files/openvpn.init | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/network/services/openvpn/files/openvpn.init b/package/network/services/openvpn/files/openvpn.init
index 994973b..5f8e932 100644
--- a/package/network/services/openvpn/files/openvpn.init
+++ b/package/network/services/openvpn/files/openvpn.init
@@ -152,3 +152,8 @@ 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