feat: Major VTL System Upgrade (Auth, Monitoring, CLI, Installer)
- Web UI: - Added secure Authentication system (Login, 2 Roles: Admin/Viewer) - Added System Monitoring Dashboard (Health, Services, Power Mgmt) - Added User Management Interface (Create, Delete, Enable/Disable) - Added Device Mapping view in iSCSI tab (lsscsi output) - Backend: - Implemented secure session management (auth.php) - Added power management APIs (restart/shutdown appliance) - Added device mapping API - CLI: - Created global 'vtl' management tool - Added scripts for reliable startup (vtllibrary fix) - Installer: - Updated install.sh with new dependencies (tgt, sudoers, permissions) - Included all new components in build-installer.sh - Docs: - Consolidated documentation into docs/ folder
This commit is contained in:
@@ -28,19 +28,24 @@ done
|
||||
|
||||
sleep 2
|
||||
|
||||
|
||||
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 > /dev/null 2>&1 &
|
||||
/usr/bin/vtllibrary -q $library > /dev/null 2>&1 &
|
||||
else
|
||||
echo "vtllibrary for library $library is already running"
|
||||
fi
|
||||
done
|
||||
|
||||
# Wait for vtllibrary to initialize
|
||||
sleep 2
|
||||
|
||||
RUNNING_DRIVES=$(pgrep -f "vtltape" | wc -l)
|
||||
RUNNING_LIBS=$(pgrep -f "vtllibrary" | wc -l)
|
||||
|
||||
echo "mhvtl started: $RUNNING_DRIVES drives, $RUNNING_LIBS libraries"
|
||||
exit 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user