diff mbox

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

Message ID 568E5406.3060509@ninux.org
State Changes Requested
Headers show

Commit Message

Nemesis Jan. 7, 2016, 12:03 p.m. UTC
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@ninux.org>
---
 package/network/services/openvpn/files/openvpn.init | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Felix Fietkau Jan. 7, 2016, 1:26 p.m. UTC | #1
On 2016-01-07 13:03, Nemesis wrote:
> 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@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
The patch is line wrapped and does not apply. Please consider using
git send-email.

- Felix
Bastian Bittorf Jan. 7, 2016, 1:31 p.m. UTC | #2
* Felix Fietkau <nbd@openwrt.org> [07.01.2016 14:29]:
> The patch is line wrapped and does not apply. Please consider using
> git send-email.

IMHO the attachement applies, does'nt it?

bye, bastian
Felix Fietkau Jan. 7, 2016, 1:43 p.m. UTC | #3
On 2016-01-07 14:31, Bastian Bittorf wrote:
> * Felix Fietkau <nbd@openwrt.org> [07.01.2016 14:29]:
>> The patch is line wrapped and does not apply. Please consider using
>> git send-email.
> 
> IMHO the attachement applies, does'nt it?
No, because git am can't magically turn PGP signatures into patches ;)

- Felix
Nemesis Jan. 7, 2016, 2:07 p.m. UTC | #4
On 01/07/2016 02:43 PM, Felix Fietkau wrote:
> On 2016-01-07 14:31, Bastian Bittorf wrote:
>> > * Felix Fietkau <nbd@openwrt.org> [07.01.2016 14:29]:
>>> >> The patch is line wrapped and does not apply. Please consider using
>>> >> git send-email.
>> > 
>> > IMHO the attachement applies, does'nt it?
> No, because git am can't magically turn PGP signatures into patches ;)

Forgive me, it was my first openwrt patch attempt. I will use git
send-email.

Federico
diff mbox

Patch

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
+}
+