summaryrefslogtreecommitdiff
path: root/src/op_mode/reset_openvpn.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-24 07:10:47 +0100
committerGitHub <noreply@github.com>2020-03-24 07:10:47 +0100
commitacb9815216dfe48c9d8684056381d9cd7b10fee0 (patch)
tree9c011c37f08d2ed747b10ef90198103e07dd38da /src/op_mode/reset_openvpn.py
parent92e6efeec0e46570daacd5d96e754a3c89868e0b (diff)
parent8f39784c847801c0b766a0c9289da0976ffd0604 (diff)
downloadvyos-1x-acb9815216dfe48c9d8684056381d9cd7b10fee0.tar.gz
vyos-1x-acb9815216dfe48c9d8684056381d9cd7b10fee0.zip
Merge pull request #261 from thomas-mangin/2154
ethernet: T2154: do not report errors where none are
Diffstat (limited to 'src/op_mode/reset_openvpn.py')
-rwxr-xr-xsrc/op_mode/reset_openvpn.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/op_mode/reset_openvpn.py b/src/op_mode/reset_openvpn.py
index 38eca53cc..176cd51cf 100755
--- a/src/op_mode/reset_openvpn.py
+++ b/src/op_mode/reset_openvpn.py
@@ -48,7 +48,10 @@ if __name__ == '__main__':
pid = int(f.read())
if pid_exists(pid):
- cmd = 'start-stop-daemon --stop --quiet'
+ cmd = 'start-stop-daemon'
+ cmd += ' --stop'
+ cmd += ' --oknodo'
+ cmd += ' --quiet'
cmd += ' --pidfile ' + pidfile
subprocess_cmd(cmd)
@@ -59,7 +62,10 @@ if __name__ == '__main__':
sleep(0.250) # 250ms
# re-start OpenVPN process
- cmd = 'start-stop-daemon --start --quiet'
+ cmd = 'start-stop-daemon'
+ cmd += ' --start'
+ cmd += ' --oknodo'
+ cmd += ' --quiet'
cmd += ' --pidfile ' + get_pid_file(interface)
cmd += ' --exec /usr/sbin/openvpn'
# now pass arguments to openvpn binary