ubuntu: systemd airflow start on reboot

 

 

[Unit] Description=Airflow webservice daemon
After=network.target postgresql.service mysql.service redis.service rabbitmq-server.service
Wants=postgresql.service mysql.service redis.service rabbitmq-server.service

[Service] # Environment=/home/airflow/
Environment="AIRFLOW_HOME=/home/airflow/"
User=airflow
Group=airflow
Type=simple
ExecStart=/usr/local/bin/airflow webserver
Restart=always
RestartSec=5s

[Install] WantedBy=multi-user.target
#airflow-webserver.service
 
 
 
 
 
 
 
 
sudo systemctl enable myservice

Leave a Reply

Your email address will not be published. Required fields are marked *