fix: Run vtltape and vtllibrary in background to prevent systemd timeout- Add & to vtltape and vtllibrary commands- Redirect output to /dev/null to prevent blocking- Service now starts successfully without timeout- Tested: 4 tape drives running (sg2-sg5)- Note: Library changer requires library_contents.10 fix (separate issue)

This commit is contained in:
2025-12-09 15:35:19 +00:00
parent f2c6ed286d
commit 8a0523a265
4 changed files with 5 additions and 5 deletions

Binary file not shown.

View File

@@ -1,4 +1,4 @@
Adastra VTL Installer
Version: 1.0.0
Build Date: 2025-12-09 15:17:44
Build Date: 2025-12-09 15:32:12
Build Host: vtl-dev

View File

@@ -20,7 +20,7 @@ DRIVE_NUMS=$(grep "^Drive:" "$CONFIG_FILE" | awk '{print $2}' | sort -u)
for drive in $DRIVE_NUMS; do
if ! pgrep -f "vtltape.*-q $drive" > /dev/null; then
echo "Starting vtltape for drive $drive..."
/usr/bin/vtltape -q $drive 2>&1 | grep -v "Could not locate mhvtl kernel module" || true
/usr/bin/vtltape -q $drive > /dev/null 2>&1 &
else
echo "vtltape for drive $drive is already running"
fi
@@ -33,7 +33,7 @@ LIBRARY_NUMS=$(grep "^Library:" "$CONFIG_FILE" | awk '{print $2}' | sort -u)
for library in $LIBRARY_NUMS; do
if ! pgrep -f "vtllibrary.*$library" > /dev/null; then
echo "Starting vtllibrary for library $library..."
/usr/bin/vtllibrary $library 2>&1 || echo "Warning: Failed to start vtllibrary for library $library"
/usr/bin/vtllibrary $library > /dev/null 2>&1 &
else
echo "vtllibrary for library $library is already running"
fi

View File

@@ -20,7 +20,7 @@ DRIVE_NUMS=$(grep "^Drive:" "$CONFIG_FILE" | awk '{print $2}' | sort -u)
for drive in $DRIVE_NUMS; do
if ! pgrep -f "vtltape.*-q $drive" > /dev/null; then
echo "Starting vtltape for drive $drive..."
/usr/bin/vtltape -q $drive 2>&1 | grep -v "Could not locate mhvtl kernel module" || true
/usr/bin/vtltape -q $drive > /dev/null 2>&1 &
else
echo "vtltape for drive $drive is already running"
fi
@@ -33,7 +33,7 @@ LIBRARY_NUMS=$(grep "^Library:" "$CONFIG_FILE" | awk '{print $2}' | sort -u)
for library in $LIBRARY_NUMS; do
if ! pgrep -f "vtllibrary.*$library" > /dev/null; then
echo "Starting vtllibrary for library $library..."
/usr/bin/vtllibrary $library 2>&1 || echo "Warning: Failed to start vtllibrary for library $library"
/usr/bin/vtllibrary $library > /dev/null 2>&1 &
else
echo "vtllibrary for library $library is already running"
fi