我的服务正在按预期运行,我可以启动、顶部、重新启动、状态。但是如果我运行systemctl daemon-reload
, 运行systemctl start
, stop
, 和status
为我的服务会导致错误:
Failed to restart <my_service>.service: Unit gunicorn.service not found.
systemctl status <service>
显示:
● gunicorn.service
Loaded: not-found (Reason: Unit gunicorn.service not found.)
Active: active (running) since Sun 2022-07-31 18:14:24 EDT; 1min 51s ago
一旦我停止服务并重新启动,一切都很好。