From bab9c12e20f545ec7aff559d18be8364a3d1c725 Mon Sep 17 00:00:00 2001 From: Martin Schiller Date: Tue, 19 Dec 2017 09:53:19 +0100 Subject: [PATCH] luci-app-openvpn: use initscript to stop instances Signed-off-by: Martin Schiller --- applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua index 719145b887..6433229f69 100644 --- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua +++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua @@ -103,10 +103,7 @@ function updown.cfgvalue(self, section) end function updown.write(self, section, value) if self.option == "stop" then - local pid = s.getPID(section) - if pid ~= nil then - sys.process.signal(pid,15) - end + luci.sys.call("/etc/init.d/openvpn stop %s" % section) else luci.sys.call("/etc/init.d/openvpn start %s" % section) end -- 2.30.2