mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
17 lines
372 B
SYSTEMD
17 lines
372 B
SYSTEMD
|
[Unit]
|
||
|
Description=Airflow scheduler daemon
|
||
|
After=network.target postgresql.service redis-server.service
|
||
|
Wants=postgresql.service redis-server.service
|
||
|
|
||
|
[Service]
|
||
|
EnvironmentFile=/etc/default/airflow
|
||
|
User=airflow
|
||
|
Group=airflow
|
||
|
Type=simple
|
||
|
ExecStart=/home/airflow/.virtualenvs/airflow/bin/airflow scheduler
|
||
|
Restart=always
|
||
|
RestartSec=5s
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|