/usr/share/tripleo-image-elements/boot-stack/bin/boot-stack-logs is in python-tripleo-image-elements 0.7.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #!/bin/bash
set -eu
if [[ $EUID -ne 0 ]]; then
echo "ERROR: you must be root to run this" 1>&2
exit 1
fi
scr_name=os-logs
scr_file=$(mktemp)
this_dir=$(cd `dirname "${BASH_SOURCE[0]}"` && pwd)
cat > $scr_file <<eof
startup_message off
hardstatus alwayslastline "%w"
caption always "%{-b ..}%-w%{+b ..}[[%n%f*%t]]%{-}%+w"
eof
for f in \
/var/log/upstart/nova-compute.log \
/var/log/upstart/nova-scheduler.log; do
if [ -e $f ]; then
echo "screen -t $(basename $f) sh -c \"tail -f $f | ccze\"" >> $scr_file
fi
done
# XXX: Note that this is obsolete if the Neutron DHCP agent is in use.
echo "screen -t dnsmasq sh -c \"tail -f /var/log/syslog | grep dnsmasq\"" >> $scr_file
exec screen -c $scr_file
|