[OpenWrt-Devel] [PATCH] openvpn: added service_triggers() to init script
Nemesis
nemesis at ninux.org
Thu Jan 7 07:03:18 EST 2016
Follow up of #21469
This patch enables autoreloading openvpn via procd.
For 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20160107/182cc7e2/attachment.sig>
-------------- next part --------------
_______________________________________________
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