You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "albertwangnz (via GitHub)" <gi...@apache.org> on 2025/05/26 04:43:37 UTC

[D] How to run Airflow with systemd [airflow]

GitHub user albertwangnz created a discussion: How to run Airflow with systemd

Hi all,

I am new to Airflow and deploying Airflow on our on-premises Ubuntu machine.

I want to run Airflow with systemd. The [manual](https://airflow.apache.org/docs/apache-airflow/stable/howto/run-with-systemd.html) says "In the scripts/systemd directory, you can find unit files that have been tested on Redhat based systems".

I found the following systemd files in the Git repository (v3.0.1). However, they do not start the "dag-processor" and "triggerer", and it starts "webserver" instead of "api-server". I am confused because another [page](https://airflow.apache.org/docs/apache-airflow/stable/start.html) mentions that I should start "api-server", "dag-processor", and "triggerer", not "webserver".

Is that because the systemd files are out of date? Do I need to create some systemd files to support Airflow 3.0.1 myself to start "api-server", "dag-processor", and "triggerer"? Do I need to start these services in sequence by adding dependences in the systemd files?

<img width="142" alt="image" src="https://github.com/user-attachments/assets/80299ee5-8885-4d4b-bf2e-0f343fed6ccd" />

Any help will be highly appreciated!

Thank you.

Regards,
Albert

GitHub link: https://github.com/apache/airflow/discussions/51060

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org


Re: [D] How to run Airflow with systemd [airflow]

Posted by "AchimGaedkeLynker (via GitHub)" <gi...@apache.org>.
GitHub user AchimGaedkeLynker added a comment to the discussion: How to run Airflow with systemd

Yep, I was confused as well. The api-server serves the (web) API alongside the web interface.

I found that the api-server and the dag-processor don't go well with the systemd. So I came up with a python script, wrangling those services (semi-manually), see https://github.com/apache/airflow/discussions/52209

GitHub link: https://github.com/apache/airflow/discussions/51060#discussioncomment-13568741

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org