Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions config/mvs.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#*** ***
#*** Purpose: Fixed MVS startup script for TK4- in Docker ***
#*** ***
#*** Updated: 2025-01-27 ***
#*** Updated: 2025-12-19 ***
#*** ***
#**********************************************************************

Expand All @@ -24,14 +24,21 @@ fi
# Make sure Hercules is executable
chmod +x ./hercules/linux/64/bin/hercules

# Check if mvs script exists
if [ ! -f "./mvs" ]; then
echo "ERROR: mvs script not found!"
# Locate the configuration file
# TK4- distribution typically has config at conf/tk4-.cnf
CONFIG_FILE=""
if [ -f "./conf/tk4-.cnf" ]; then
CONFIG_FILE="conf/tk4-.cnf"
elif [ -f "./tk4-.cnf" ]; then
CONFIG_FILE="tk4-.cnf"
else
echo "ERROR: TK4- configuration file not found!"
echo "Looked in: ./conf/tk4-.cnf and ./tk4-.cnf"
exit 1
fi

# Make sure mvs script is executable
chmod +x ./mvs
echo "Starting Hercules with TK4- MVS configuration: ${CONFIG_FILE}..."
# Start Hercules with the TK4- configuration
# Using exec to replace the shell process with hercules
exec ./hercules/linux/64/bin/hercules -f "${CONFIG_FILE}"

echo "Starting MVS with TK4- configuration..."
exec ./mvs
Loading