diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-03-24 07:10:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-24 07:10:47 +0100 |
commit | acb9815216dfe48c9d8684056381d9cd7b10fee0 (patch) | |
tree | 9c011c37f08d2ed747b10ef90198103e07dd38da /src/conf_mode/vpn_sstp.py | |
parent | 92e6efeec0e46570daacd5d96e754a3c89868e0b (diff) | |
parent | 8f39784c847801c0b766a0c9289da0976ffd0604 (diff) | |
download | vyos-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/conf_mode/vpn_sstp.py')
-rwxr-xr-x | src/conf_mode/vpn_sstp.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/conf_mode/vpn_sstp.py b/src/conf_mode/vpn_sstp.py index 8583ece74..8e5c7587c 100755 --- a/src/conf_mode/vpn_sstp.py +++ b/src/conf_mode/vpn_sstp.py @@ -497,7 +497,10 @@ def apply(sstp): if sstp is None: if pid_exists(pid): - cmd = 'start-stop-daemon --stop --quiet' + cmd = 'start-stop-daemon' + cmd += ' --stop ' + cmd += ' --quiet' + cmd += ' --oknodo' cmd += ' --pidfile ' + pidfile subprocess_cmd(cmd) @@ -510,7 +513,10 @@ def apply(sstp): if os.path.exists(pidfile): os.remove(pidfile) - cmd = 'start-stop-daemon --start --quiet' + cmd = 'start-stop-daemon' + cmd += ' --start ' + cmd += ' --quiet' + cmd += ' --oknodo' cmd += ' --pidfile ' + pidfile cmd += ' --exec /usr/sbin/accel-pppd' # now pass arguments to accel-pppd binary |