2 Commits

Author SHA1 Message Date
bf3ed8d90c Delete wget-log.1 2025-12-12 12:33:37 +00:00
1d307e7809 Delete wget-log 2025-12-12 12:33:26 +00:00
2 changed files with 1 additions and 23 deletions

View File

@@ -1,5 +0,0 @@
# Claude Haiku 4.5 feature toggle
# Set ENABLE_CLAUDE_HAIKU_4_5 to true to enable for all clients.
ENABLE_CLAUDE_HAIKU_4_5=true
APPLIES_TO=all_clients
DESCRIPTION=Enables Claude Haiku 4.5 for all clients. Toggle to false to disable.

View File

@@ -2,30 +2,13 @@
echo "Stopping mhvtl Virtual Tape Library..."
CONFIG_FILE="/etc/mhvtl/device.conf"
# First try graceful shutdown using vtlcmd for each configured Drive
if [ -f "$CONFIG_FILE" ] && command -v vtlcmd >/dev/null 2>&1; then
DRIVES=$(grep "^Drive:" "$CONFIG_FILE" | awk '{print $2}' | sort -u)
for d in $DRIVES; do
if pgrep -f "vtltape.*-q $d" >/dev/null; then
echo "Attempting graceful shutdown of vtltape (queue $d)..."
/usr/bin/vtlcmd $d exit || true
fi
done
# Give processes a few seconds to exit cleanly
sleep 3
fi
# Fallback: ensure vtllibrary and any remaining vtltape processes are killed
killall vtllibrary 2>/dev/null || true
killall vtltape 2>/dev/null || true
sleep 1
sleep 2
rm -f /var/lock/mhvtl/mhvtl* 2>/dev/null || true
# Try to remove kernel module if present
rmmod mhvtl 2>/dev/null || true
echo "mhvtl stopped successfully"