Created
June 27, 2020 09:22
-
-
Save kahirul/b38ca3e89ca6b3f58ae5a9b23b92bc3f to your computer and use it in GitHub Desktop.
cat /etc/systemd/system/airflow-scheduler.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 scheduler 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 scheduler' | |
KillMode=process | |
Restart=always | |
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