Created
June 27, 2020 09:23
-
-
Save kahirul/b5585a2dca40818f4c550b0107d7d4b3 to your computer and use it in GitHub Desktop.
cat /etc/systemd/system/airflow-webserver.service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Airflow webserver daemon | |
| After=network.target | |
| [Service] | |
| EnvironmentFile=/etc/environment | |
| User=ubuntu | |
| Group=ubuntu | |
| Type=simple | |
| ExecStart=/bin/bash -c 'source /home/ubuntu/.miniconda3/etc/profile.d/conda.sh && conda activate airflow && airflow webserver' | |
| Restart=on-failure | |
| RestartSec=5s | |
| PrivateTmp=true | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment