#!/bin/bash
screen -X -S airflow_webserver kill >/dev/null
screen -X -S airflow_scheduler kill >/dev/null
cd /home/svc-zsaf/zoox/driving # bcd

echo "Starting Airflow webserver"
screen -dm -S airflow_webserver "/home/svc-zsaf/zoox/driving/zsaf/server/bash_scripts/run_airflow_webserver.sh"
sleep 1

echo "Starting Airflow scheduler"
screen -dm -S airflow_scheduler "/home/svc-zsaf/zoox/driving/zsaf/server/bash_scripts/run_airflow_scheduler.sh"
sleep 1

screen -list
