Skip to content

Commit 4b9b740

Browse files
committed
CA-227721: init-script: flush to log on xapi start
The start function in the init-script for xapi was writing "Starting xapi: " with no newline on success, so the text did not reach the logging system until the next stop; this caused wrong and confusing logs. Now the function emits a newline immediately before it replaces itself with a xapi process. Signed-off-by: Thomas Sanders <[email protected]>
1 parent bbe29f5 commit 4b9b740

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/init.d-xapi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ start() {
5050
# clear out qemu coredumps/chroot dirs on system boot:
5151
rm -rf /var/xen/qemu/*
5252
#rm -f ${XAPI_BOOT_TIME_INFO_UPDATED}
53+
echo
5354
exec "@BINDIR@/xapi" -nowatchdog ${xapiflags} \
5455
-writereadyfile ${XAPI_STARTUP_COOKIE} -writeinitcomplete ${XAPI_INIT_COMPLETE_COOKIE} -onsystemboot
5556
RETVAL=$?
5657
else
58+
echo
5759
exec "@BINDIR@/xapi" -nowatchdog ${xapiflags} \
5860
-writereadyfile ${XAPI_STARTUP_COOKIE} -writeinitcomplete ${XAPI_INIT_COMPLETE_COOKIE}
5961
RETVAL=$?

0 commit comments

Comments
 (0)