summaryrefslogtreecommitdiff
path: root/src/conf_mode/ntp.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-08-26 14:53:16 +0200
committerChristian Poessinger <christian@poessinger.com>2018-08-26 14:53:16 +0200
commit81f0f401e2f255167ffa33ca3b300fd16540e5e6 (patch)
tree1245375010c95d9e96029b8bf5f1f9fd38ec24d5 /src/conf_mode/ntp.py
parentbbc698be2fcafad4e803fc01ec89f44a3aa20782 (diff)
parent4d222bc14c23ba010b6e245ff35ddb766401b20d (diff)
downloadvyos-1x-81f0f401e2f255167ffa33ca3b300fd16540e5e6.tar.gz
vyos-1x-81f0f401e2f255167ffa33ca3b300fd16540e5e6.zip
Merge branch 'tftp-server' into current
* tftp-server: T792: add TFTP server functionality ssh.py: start/stop service via systemctl ntp.py: start/stop service via systemctl
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