Skip to content

Instantly share code, notes, and snippets.

@kahirul
Created June 27, 2020 09:22
Show Gist options
  • Save kahirul/b38ca3e89ca6b3f58ae5a9b23b92bc3f to your computer and use it in GitHub Desktop.
Save kahirul/b38ca3e89ca6b3f58ae5a9b23b92bc3f to your computer and use it in GitHub Desktop.
cat /etc/systemd/system/airflow-scheduler.service
[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