sonic-buildimage/files/image_config/ntp/ntp-config.service
Prabhu Sreenivasan 2895b79482
[ntp]: NTP service ordering (#6115)
Make sure ntp-config service is executed before ntpd

Updated ntp-config service files to force dependency with ntp service. Also resolved circular dependency with --no-block flag. (needed as ntp-config service internally invokes systemd to restart ntp which in turn waits for ntp-config to complete)

Signed-off-by: Prabhu Sreenivasan <prabhu.sreenivasan@broadcom.com>
2020-12-04 08:49:20 -08:00

13 lines
213 B
Desktop File

[Unit]
Description=Update NTP configuration
Requires=updategraph.service
After=updategraph.service
Before=ntp.service
[Service]
Type=oneshot
ExecStart=/usr/bin/ntp-config.sh
[Install]
WantedBy=multi-user.target