Restart ntp after ntp-config (#1106)

* Restart ntp after ntp-config
* Remove ntp dependency to ntp-config
This commit is contained in:
Taoyu Li 2017-11-07 14:51:07 -08:00 committed by GitHub
parent 1ce9b85e3c
commit f7c39720f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,5 @@
[Unit]
Description=Update NTP configuration
Before=ntp.service
Requires=database.service
After=database.service

View File

@ -1,3 +1,5 @@
#!/bin/bash
sonic-cfggen -d -t /usr/share/sonic/templates/ntp.conf.j2 >/etc/ntp.conf
systemctl restart ntp