diff options
author | Martin Schiller <ms@dev.tdt.de> | 2017-12-19 09:53:19 +0100 |
---|---|---|
committer | Martin Schiller <ms@dev.tdt.de> | 2018-02-15 06:14:24 +0100 |
commit | bab9c12e20f545ec7aff559d18be8364a3d1c725 (patch) | |
tree | d471429296c51e94c20e09e4709c55df9637ea3a /applications/luci-app-openvpn/luasrc/model/cbi | |
parent | 63efc28d48bf4ead1b2ca69d27fa788f3954d9bd (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/luasrc/model/cbi')
-rw-r--r-- | applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua | 5 |
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 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 |