Need to pay attention to environment path, user.
[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
Environment=PATH=$PATH:/home/ken/miniconda3/bin/
User=ken
Group=ken
Type=simple
ExecStart=/home/ken/miniconda3/bin/airflow webserver
Restart=on-failure
RestartSec=5s
PrivateTmp=true
[Install]
WantedBy=multi-user.target