Python beaver服务无法在RHEL 70上启动

时间:2015-01-22 08:58:12

标签: python rhel7

我在RHEL7.0上安装了python-beaver,但它没有启动

/bin/systemctl start beaver.service
Job for beaver.service failed. See 'systemctl status beaver.service' and 'journalctl -xn' for details.

但是在这次失败之后我发现服务正在运行

[root@Rhel70 ~]# ps -ef | grep beaver
beaver   57950     1  0 14:20 ?        00:00:00 /opt/stack/venvs/bin/python     /opt/stack/venvs/bin/beaver -c /etc/beaver/conf
beaver   57953 57950  0 14:20 ?        00:00:00 /opt/stack/venvs/bin/python     /opt/stack/venvs/bin/beaver -c /etc/beaver/conf
beaver   57955 57953  0 14:20 ?        00:00:00 /opt/stack/venvs/bin/python     /opt/stack/venvs/bin/beaver -c /etc/beaver/conf
root     57966 16540  0 14:20 pts/0    00:00:00 grep --color=auto beaver

海狸启动脚本如下,beaver.service文件

[Unit]
Description=Beaver Service
After=syslog.target network.target

[Service]
Type=notify
Restart=always
User=beaver
ExecStart=/opt/stack/venvs/bin/beaver -c /etc/beaver/conf

[Install]
WantedBy=multi-user.target

1 个答案:

答案 0 :(得分:0)

我想出了问题。这是因为我正在使用:

[Service]
Type=notify

Type = notify:与Type = simple相同,但规定守护进程在准备就绪时会向systemd发送信号

虽然服务已经开始,但这并没有发出信号。

了解更多信息: https://wiki.archlinux.org/index.php/systemd