如何在 RHEL 中将芹菜花作为守护进程启动?



我试图将花作为守护进程运行。我的花服务文件如下:

[Unit]
Description=Flower Service
After=network.target
[Service]
Type=forking
User=maas
Group=maas
PermissionsStartOnly=true
ExecStart=/bin/flower --broker=amqp://oser000300//
[Install]
WantedBy=multi-user.target

但是当我启动服务时,它给出了错误。

//systemctl status flower.service
* flower.service - Flower Service
Loaded: loaded (/etc/systemd/system/flower.service; enabled; vendor preset: disabled)
Active: failed (Result: timeout) since Mon 2017-07-10 20:25:59 UTC; 4min 38s ago
Process: 49255 ExecStart=/bin/flower --broker=amqp://oser000300//  (code=exited, status=0/SUCCESS)

Connected to amqp://guest:**@oser000300:5672//
flower.service start operation timed out. Terminating.
SIGTERM detected, shutting down
Failed to start Flower Service.
Unit flower.service entered failed state.
flower.service failed.

启动服务时我遇到了同样的超时问题。

这些参数已经完成了这个技巧(我已经用分叉类型运行了芹菜服务(:

Type=simple
Restart=on-failure

相关内容

  • 没有找到相关文章

最新更新