Skip to content
Snippets Groups Projects

[bug] search for any openvpn process, the binary name might not match

Merged meskio requested to merge meskio/bitmask-dev:bug/stop_openvpn into master
1 file
+ 1
2
Compare changes
  • Side-by-side
  • Inline
@@ -441,9 +441,8 @@ def openvpn_stop(args):
@@ -441,9 +441,8 @@ def openvpn_stop(args):
:type args: list
:type args: list
"""
"""
plist = get_process_list()
plist = get_process_list()
OPENVPN_BIN = get_openvpn_bin()
found_leap_openvpn = filter(
found_leap_openvpn = filter(
lambda (p, s): s.startswith(OPENVPN_BIN) and LEAPOPENVPN in s,
lambda (p, s): "openvpn" in s and LEAPOPENVPN in s,
plist)
plist)
if found_leap_openvpn:
if found_leap_openvpn:
Loading