summaryrefslogtreecommitdiff
path: root/src/conf_mode/vrrp.py
diff options
context:
space:
mode:
authorThomas Mangin <thomas.mangin@exa.net.uk>2020-05-19 21:13:40 +0100
committerThomas Mangin <thomas.mangin@exa.net.uk>2020-05-19 21:13:40 +0100
commit43dd945c5a45c86c491892f30546d0179751bf4a (patch)
tree9e30f8270347717726dc137b61b5034d90f05072 /src/conf_mode/vrrp.py
parent3458a8b50853ecd032ebc3ee87f00452ac73ebcd (diff)
downloadvyos-1x-43dd945c5a45c86c491892f30546d0179751bf4a.tar.gz
vyos-1x-43dd945c5a45c86c491892f30546d0179751bf4a.zip
util: T2467: add systemctl to autosudo
Diffstat (limited to 'src/conf_mode/vrrp.py')
-rwxr-xr-xsrc/conf_mode/vrrp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/vrrp.py b/src/conf_mode/vrrp.py
index f358891a5..1a5ad1f8c 100755
--- a/src/conf_mode/vrrp.py
+++ b/src/conf_mode/vrrp.py
@@ -227,17 +227,17 @@ def apply(data):
if not VRRP.is_running():
print("Starting the VRRP process")
- ret = call("sudo systemctl restart keepalived.service")
+ ret = call("systemctl restart keepalived.service")
else:
print("Reloading the VRRP process")
- ret = call("sudo systemctl reload keepalived.service")
+ ret = call("systemctl reload keepalived.service")
if ret != 0:
raise ConfigError("keepalived failed to start")
else:
# VRRP is removed in the commit
print("Stopping the VRRP process")
- call("sudo systemctl stop keepalived.service")
+ call("systemctl stop keepalived.service")
os.unlink(VRRP.location['daemon'])
return None