32 lines
736 B
Bash
Executable File
32 lines
736 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Restart all DBIS Core services
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../../.." && pwd)"
|
|
|
|
# Source utilities
|
|
source "$PROJECT_ROOT/dbis_core/scripts/utils/common.sh"
|
|
|
|
# Load configuration
|
|
load_config
|
|
|
|
log_info "========================================="
|
|
log_info "DBIS Core - Restart Services"
|
|
log_info "========================================="
|
|
log_info ""
|
|
|
|
log_info "Stopping services..."
|
|
bash "$SCRIPT_DIR/stop-services.sh"
|
|
|
|
log_info ""
|
|
log_info "Starting services..."
|
|
bash "$SCRIPT_DIR/start-services.sh"
|
|
|
|
log_info ""
|
|
log_success "Services restarted!"
|
|
log_info ""
|
|
log_info "Run './scripts/management/status.sh' to check service status"
|
|
|