Skip to content

Commit

Permalink
Restart ntp after ntp-config (#1106)
Browse files Browse the repository at this point in the history
* Restart ntp after ntp-config
* Remove ntp dependency to ntp-config
  • Loading branch information
taoyl-ms committed Nov 7, 2017
1 parent 1ce9b85 commit f7c3972
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion files/image_config/ntp/ntp-config.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[Unit]
Description=Update NTP configuration
Before=ntp.service
Requires=database.service
After=database.service

Expand Down
2 changes: 2 additions & 0 deletions files/image_config/ntp/ntp-config.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

sonic-cfggen -d -t /usr/share/sonic/templates/ntp.conf.j2 >/etc/ntp.conf

systemctl restart ntp

0 comments on commit f7c3972

Please sign in to comment.