mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Let's try to also output any existing logs.
This commit is contained in:
parent
32073d7f37
commit
d2432ef335
1 changed files with 12 additions and 0 deletions
|
@ -2272,6 +2272,18 @@ if [ "$DAEMONS_RUNNING_FUNC" != "null" ]; then
|
|||
for line in "$(ps auxwww)"; do
|
||||
echodebug "$line"
|
||||
done
|
||||
|
||||
for fname in minion master syndic; do
|
||||
# Skip if not meant to be installed
|
||||
[ $fname = "minion" ] && [ $INSTALL_MINION -eq $BS_FALSE ] && continue
|
||||
[ $fname = "master" ] && [ $INSTALL_MASTER -eq $BS_FALSE ] && continue
|
||||
[ $fname = "syndic" ] && [ $INSTALL_SYNDIC -eq $BS_FALSE ] && continue
|
||||
|
||||
[ ! -f /var/log/$fname ] && continue
|
||||
|
||||
echodebug "DEAMON LOGS for $fname: $(cat /var/log/$fname)"
|
||||
|
||||
done
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue