File size: 602 Bytes
01d5a5d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

# Source the logging utilities
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${SCRIPT_DIR}/utils/logging.sh"

# Main function to force restart services
restart_services_force() {
    log_section "FORCE RESTARTING SERVICES"
    
    # Stop services
    log_info "Stopping services..."
    "${SCRIPT_DIR}/scripts/stop.sh"
    
    # Remove data directory
    log_warning "Removing data directory..."
    rm -rf data

    # Start services
    log_info "Starting services..."
    "${SCRIPT_DIR}/scripts/start.sh"
}

# Execute force restart services
restart_services_force