Merge "Wrap ntpdate to timeout"
This commit is contained in:
commit
2e2ce2f328
|
@ -226,7 +226,7 @@
|
|||
requires: [pre_deployment_start]
|
||||
required_for: [pre_deployment_end]
|
||||
parameters:
|
||||
cmd: ntpdate -u -v -s $(awk '/^server/ { if ($2 !~ /127\.127\.[0-9]+\.[0-9]+/) {ORS=" "; print $2}}' /etc/ntp.conf)
|
||||
cmd: timeout --foreground --preserve-status 30 ntpdate -u -v -s $(awk '/^server/ { if ($2 !~ /127\.127\.[0-9]+\.[0-9]+/) {ORS=" "; print $2}}' /etc/ntp.conf)
|
||||
retries: 10
|
||||
interval: 30
|
||||
timeout: 180
|
||||
|
|
Loading…
Reference in New Issue