summaryrefslogtreecommitdiff
path: root/src/conf_mode/ntp.py
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2018-08-26 10:10:38 -0700
committerhagbard <vyosdev@derith.de>2018-08-26 10:10:38 -0700
commitf2aaa21fb909933246f3340240dc17d05c5f9695 (patch)
treeab3032c5162b8cc51c05e30cf8e69c14a4e1789b /src/conf_mode/ntp.py
parent2c6e9b40b41947dcd5de00d9912c9f531b70e8fa (diff)
parent5545782bd2ffb4f715699c4a2a343462e916faca (diff)
downloadvyos-1x-f2aaa21fb909933246f3340240dc17d05c5f9695.tar.gz
vyos-1x-f2aaa21fb909933246f3340240dc17d05c5f9695.zip
Merge remote-tracking branch 'upstream/current' into current
Diffstat (limited to 'src/conf_mode/ntp.py')
-rwxr-xr-xsrc/conf_mode/ntp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/ntp.py b/src/conf_mode/ntp.py
index b618cbd89..8533411cc 100755
--- a/src/conf_mode/ntp.py
+++ b/src/conf_mode/ntp.py
@@ -154,10 +154,10 @@ def generate(ntp):
def apply(ntp):
if ntp is not None:
- os.system('sudo /usr/sbin/invoke-rc.d ntp force-reload')
+ os.system('sudo systemctl restart ntp.service')
else:
# NTP support is removed in the commit
- os.system('sudo /usr/sbin/invoke-rc.d ntp stop')
+ os.system('sudo systemctl stop ntp.service')
os.unlink(config_file)
return None