mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-28 04:58:32 +00:00
always wait for vsudd pidfile
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
06c4325294
commit
32020f01f6
@ -25,7 +25,8 @@ start()
|
|||||||
|
|
||||||
if [ -n "$SYSLOG_PORT" ] ; then
|
if [ -n "$SYSLOG_PORT" ] ; then
|
||||||
# Can be inlined below once Windows defines syslog port
|
# Can be inlined below once Windows defines syslog port
|
||||||
SYSLOG_OPT="-syslog ${SYSLOG_PORT}:/var/run/syslog.vsock"
|
SYSLOG_SOCK=/var/run/syslog.vsock
|
||||||
|
SYSLOG_OPT="-syslog ${SYSLOG_PORT}:${SYSLOG_SOCK}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
start-stop-daemon --start --quiet \
|
start-stop-daemon --start --quiet \
|
||||||
@ -35,7 +36,7 @@ start()
|
|||||||
${SYSLOG_OPT} \
|
${SYSLOG_OPT} \
|
||||||
-pidfile ${PIDFILE}
|
-pidfile ${PIDFILE}
|
||||||
|
|
||||||
[ -n "${SYSLOG_OPT}" ] && ewaitfile 10 /var/run/syslog.vsock
|
ewaitfile 10 ${SYSLOG_SOCK} ${PIDFILE}
|
||||||
|
|
||||||
eend $? "Failed to start vsudd"
|
eend $? "Failed to start vsudd"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user