mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-14 05:49:57 +00:00
ntp: fix ntpdate to wait for subprocesses
When using systemd, ntpdate-sync script will start in background triggering the start of ntpd without actually exiting. This results in an bind error in ntpd startup. Add wait at the end of ntpdate script to ensure that when the ntpdate.service is marked as finished the oneshot script ntpdate-sync finished and unbind the ntp port Fixes #386 Signed-off-by: Adrian Zaharia <Adrian.Zaharia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit73d5cd5e8d) Signed-off-by: Armin Kuster <akuster808@gmail.com> (cherry picked from commitf52ce99b46) Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
aeae0a34cf
commit
5c1356a1ec
@@ -52,3 +52,8 @@ if [ -x /usr/bin/lockfile-create ] ; then
|
||||
fi
|
||||
|
||||
) &
|
||||
|
||||
# wait for all subprocesses to finish
|
||||
# this is required when using systemd service as ntpd will start before ntpdate finishes
|
||||
# and results in a bind error (port 123)
|
||||
wait
|
||||
|
||||
Reference in New Issue
Block a user