b349e39077
As advised in I072cf8bf6748d0c910fecffdf2282bcc4656d038, code should use 4 spaces for indentation. This commit enforces the use of 4 spaces indentation. In order to simplify the review process, this patch only cover the following elements: - bm-dnsmasq, - boot-stack, - cinder-volume - devstack - haproxy - keepalived - mariadb - mariadb-dev - memcached - mysql-common - mysql Change-Id: I7932fd24e72f7585e24ad3e0213f42361e668f7c
31 lines
733 B
Bash
Executable File
31 lines
733 B
Bash
Executable File
#!/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
|