git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
63efc28
)
luci-app-openvpn: use initscript to stop instances
author
Martin Schiller
<redacted>
Tue, 19 Dec 2017 08:53:19 +0000
(09:53 +0100)
committer
Martin Schiller
<redacted>
Thu, 15 Feb 2018 05:14:24 +0000
(06:14 +0100)
Signed-off-by: Martin Schiller <redacted>
applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua
patch
|
blob
|
history
diff --git
a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua
b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua
index 719145b887bd8a1b10f776cae7a54e4175d6ca7c..6433229f690e1099191f2427f78e92d0eab9787f 100644
(file)
--- 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
git clone https://git.99rst.org/PROJECT