summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-openvpn
diff options
context:
space:
mode:
authorMartin Schiller <ms@dev.tdt.de>2017-12-19 09:53:19 +0100
committerMartin Schiller <ms@dev.tdt.de>2018-02-15 06:14:24 +0100
commitbab9c12e20f545ec7aff559d18be8364a3d1c725 (patch)
treed471429296c51e94c20e09e4709c55df9637ea3a /applications/luci-app-openvpn
parent63efc28d48bf4ead1b2ca69d27fa788f3954d9bd (diff)
luci-app-openvpn: use initscript to stop instances
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-openvpn')
-rw-r--r--applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua5
1 files changed, 1 insertions, 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 719145b88..6433229f6 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