Skip to content

Instantly share code, notes, and snippets.

@interaminense
Created April 3, 2026 02:29
Show Gist options
  • Select an option

  • Save interaminense/036c91e674dd84ea3d096613efce2b59 to your computer and use it in GitHub Desktop.

Select an option

Save interaminense/036c91e674dd84ea3d096613efce2b59 to your computer and use it in GitHub Desktop.
A wrapper for Liferay DXP tomcat
#!/usr/bin/env bash
# Colorized wrapper for catalina.sh run
# Usage: ./run.sh [catalina args]
RESET='\033[0m'
BOLD='\033[1m'
DIM='\033[2m'
print_banner() {
printf "${CYAN}${BOLD}"
printf ' ____ _ _____ _ _ ___ __________ \n'
printf ' / ___| / \|_ _|/ \ | | |_ _|__ / ____|\n'
printf '| | / _ \ | | / _ \ | | | | / /| _| \n'
printf '| |___ / ___ \| |/ ___ \| |___ | | / /_| |___ \n'
printf ' \____/_/ \_\_/_/ \_\_____|___/____|_____|\n'
printf "${RESET}"
printf "${DIM} Colorized Tomcat log runner for Liferay DXP${RESET}\n"
printf "\n"
}
print_banner
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
"$DIR/catalina.sh" run "$@" 2>&1 | python3 "$DIR/catalize.py"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment