Commit e11ad0fc authored by Leigh Stoller's avatar Leigh Stoller

Start up reportboot_daemon (wrapped by daemon_wrapper) when

BOOTINFO_EVENTS=0 (not sending PXEBOOTING/BOOTING from bootinfo).
parent cea215cf
......@@ -151,6 +151,21 @@ case "$1" in
echo -n " apt_checkup"
@prefix@/sbin/apt_checkup
fi
#
# Could trigger experiment creation, so make sure everything
# else is setup first; i.e., run this last!
#
if [ @BOOTINFO_EVENTS@ -eq 0 -a -x @prefix@/sbin/reportboot_daemon ]; then
echo -n " reportboot daemon "
if [ -x @prefix@/sbin/daemon_wrapper ]; then
@prefix@/sbin/daemon_wrapper -i 30 \
-l @prefix@/log/reportboot.log \
-p /var/run/reportboot_daemon.pid \
@prefix@/sbin/reportboot_daemon -f
else
@prefix@/sbin/reportboot_daemon
fi
fi
if [ -n "@ATTENUATOR@" -a -x @prefix@/sbin/attend ]; then
echo -n " attend"
......@@ -275,6 +290,9 @@ case "$1" in
if [ -r /var/run/shared-node-listener.pid ]; then
kill `cat /var/run/shared-node-listener.pid`
fi
if [ -r /var/run/reportboot_daemon.pid ]; then
kill `cat /var/run/reportboot_daemon.pid`
fi
;;
*)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment