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:
BIN
dist/adastra-vtl-installer-1.0.0.tar.gz
vendored
BIN
dist/adastra-vtl-installer-1.0.0.tar.gz
vendored
Binary file not shown.
2
dist/adastra-vtl-installer/VERSION
vendored
2
dist/adastra-vtl-installer/VERSION
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user