diff --git a/start-services.sh b/start-services.sh index bc48195..c073011 100755 --- a/start-services.sh +++ b/start-services.sh @@ -23,17 +23,23 @@ pkill -f "target/debug/graphic_designers" || true pkill -f "target/debug/social_media_managers" || true pkill -f "target/debug/fitness_trainers" || true pkill -f "target/debug/catering_services" || true -pkill -f "target/debug/payments" || true +pkill -f "target/debug/ugc_content_creators" || true +pkill -f "target/debug/employees" || true apps=( "gateway" "users" "companies" "job_seekers" "customers" "photographers" "makeup_artists" "tutors" "developers" "video_editors" - "graphic_designers" "social_media_managers" "fitness_trainers" "catering_services" "payments" + "graphic_designers" "social_media_managers" "fitness_trainers" "catering_services" + "ugc_content_creators" "employees" ) for app in "${apps[@]}"; do - echo "Starting $app..." - ./target/debug/$app > "$app.log" 2>&1 & + if [[ -x "./target/debug/$app" ]]; then + echo "Starting $app..." + nohup ./target/debug/$app > "$app.log" 2>&1 & + else + echo "Skipping $app (binary not found at ./target/debug/$app)" + fi done -echo "All services booted up!" +echo "All available services booted up!"