This commit is contained in:
Bolke de Bruin 2015-11-23 19:32:54 +01:00
Родитель c83d78f31b
Коммит 327984db53
6 изменённых файлов: 91 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,6 @@
The systemd files in this directory are tested on RedHat based systems. Copy (or link) them to /usr/lib/systemd/system.
You can then start the different servers by using systemctl start <service>. Enabling services can be done by issuing
systemctl enable <service>. By default the environment configuration points to /etc/sysconfig/airflow where you can
override defaults like AIRFLOW_HOME.
With some minor changes they probably work on other systemd systems.

Просмотреть файл

@ -0,0 +1,17 @@
[Unit]
Description=Airflow celery flower
After=network.target postgresql.service mysql.service redis.service rabbitmq-server.service
Wants=postgresql.service mysql.service redis.service rabbitmq-server.service
[Service]
EnvironmentFile=/etc/sysconfig/airflow
User=airflow
Group=airflow
Type=simple
ExecStart=/bin/airflow flower
KillMode=process
Restart=on-failure
RestartSec=42s
[Install]
WantedBy=multi-user.target

Просмотреть файл

@ -0,0 +1,17 @@
[Unit]
Description=Airflow kerberos ticket renewer
After=network.target postgresql.service mysql.service redis.service rabbitmq-server.service
Wants=postgresql.service mysql.service redis.service rabbitmq-server.service
[Service]
EnvironmentFile=/etc/sysconfig/airflow
User=airflow
Group=airflow
Type=simple
ExecStart=/bin/airflow kerberos
KillMode=process
Restart=on-failure
RestartSec=42s
[Install]
WantedBy=multi-user.target

Просмотреть файл

@ -0,0 +1,17 @@
[Unit]
Description=Airflow scheduler daemon
After=network.target postgresql.service mysql.service redis.service rabbitmq-server.service
Wants=postgresql.service mysql.service redis.service rabbitmq-server.service
[Service]
EnvironmentFile=/etc/sysconfig/airflow
User=airflow
Group=airflow
Type=simple
ExecStart=/bin/airflow scheduler -n 5
KillMode=process
Restart=on-failure
RestartSec=42s
[Install]
WantedBy=multi-user.target

Просмотреть файл

@ -0,0 +1,17 @@
[Unit]
Description=Airflow webserver daemon
After=network.target postgresql.service mysql.service redis.service rabbitmq-server.service
Wants=postgresql.service mysql.service redis.service rabbitmq-server.service
[Service]
EnvironmentFile=/etc/sysconfig/airflow
User=airflow
Group=airflow
Type=simple
ExecStart=/bin/airflow webserver
KillMode=process
Restart=on-failure
RestartSec=42s
[Install]
WantedBy=multi-user.target

Просмотреть файл

@ -0,0 +1,17 @@
[Unit]
Description=Airflow celery worker daemon
After=network.target postgresql.service mysql.service redis.service rabbitmq-server.service
Wants=postgresql.service mysql.service redis.service rabbitmq-server.service
[Service]
EnvironmentFile=/etc/sysconfig/airflow
User=airflow
Group=airflow
Type=simple
ExecStart=/bin/airflow worker
KillMode=process
Restart=on-failure
RestartSec=42s
[Install]
WantedBy=multi-user.target