Untitled
unknown
plain_text
2 years ago
466 B
3
Indexable
#!/bin/bash host="localhost" port=11400 webserver_status=0 scheduler_status=0 airflow_home = $AIRFLOW_HOME if [ -f "$airflow_home/airflow-webserver.pid" ]; then webserver_status=1 echo "Webserver is Up" else webserver_status=0 echo "Webserver is Down" fi if [ -f "$airflow_home/airflow-scheduler.pid" ]; then scheduler_status=1 echo "scheduler is Up" else scheduler_status=0 echo "scheduler is Down" fi echo "$webserver_status"
Editor is loading...