summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-08-26 13:18:18 +0200
committerChristian Poessinger <christian@poessinger.com>2018-08-26 13:19:30 +0200
commit211b762f9bdc5704e07638ac8f948277ef4f4319 (patch)
treee429705f5948003383ea8cfe3537dd20f9fafab7 /src
parentbbc698be2fcafad4e803fc01ec89f44a3aa20782 (diff)
downloadvyos-1x-211b762f9bdc5704e07638ac8f948277ef4f4319.tar.gz
vyos-1x-211b762f9bdc5704e07638ac8f948277ef4f4319.zip
ntp.py: start/stop service via systemctl
Diffstat (limited to 'src')
-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