我使用 PyPy 安装了 Apache airflow,可执行文件位于
/home/my_user/anaconda3/envs/my_env/bin/airflow
安装工作正常,我想使其成为 systemd。
[Unit]
Description=Airflow standalon daemon
After=network.target postgresql.service mysql.service redis.service rabbitmq-server.service
Wants=postgresql.service mysql.service redis.service rabbitmq-server.service
[Service]
Environment="PATH=/home/my_user/anaconda3/my_env/dev/bin"
User=my_user
Group=my_user
Type=simple
ExecStart=/home/my_user/anaconda3/envs/my_env/bin/airflow standalone
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target
但是,我收到此错误:
Dec 10 17:06:06 airflow[23454]: raise child_exception_type(errno_num, err_msg, err_filename)
Dec 10 17:06:06 airflow[23454]: FileNotFoundError: [Errno 2] No such file or directory: 'airflow'
我设置正确吗?