Skip to content

Commit

Permalink
Show up to 10 lines of log
Browse files Browse the repository at this point in the history
  • Loading branch information
djarbz committed Oct 24, 2024
1 parent eb974cb commit f3a0f98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kasmvnc/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ pid=$!

# Wait for server to start
sleep 5
grep -v '^[[:space:]]*$' /tmp/kasmvncserver.log | tail -n 10
if ps -p $pid | grep -q "^$pid"; then
echo "ERROR: Failed to start KasmVNC server. Check logs at /tmp/kasmvncserver.log"
grep -v '^[[:space:]]*$' /tmp/kasmvncserver.log
echo "ERROR: Failed to start KasmVNC server. Check full logs at /tmp/kasmvncserver.log"
exit 1
fi
printf "🚀 KasmVNC server started successfully!\n"

0 comments on commit f3a0f98

Please sign in to comment.