Restart ntp after ntp-config (#1106)
* Restart ntp after ntp-config * Remove ntp dependency to ntp-config
This commit is contained in:
parent
1ce9b85e3c
commit
f7c39720f7
@ -1,6 +1,5 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Update NTP configuration
|
Description=Update NTP configuration
|
||||||
Before=ntp.service
|
|
||||||
Requires=database.service
|
Requires=database.service
|
||||||
After=database.service
|
After=database.service
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
sonic-cfggen -d -t /usr/share/sonic/templates/ntp.conf.j2 >/etc/ntp.conf
|
sonic-cfggen -d -t /usr/share/sonic/templates/ntp.conf.j2 >/etc/ntp.conf
|
||||||
|
|
||||||
|
systemctl restart ntp
|
||||||
|
Loading…
Reference in New Issue
Block a user