Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/308.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python beaver服务未在RHEL 70上启动_Python_Rhel7 - Fatal编程技术网

Python beaver服务未在RHEL 70上启动

Python beaver服务未在RHEL 70上启动,python,rhel7,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

我已经在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启动脚本位于下面的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

我把问题解决了。这是因为我使用了:

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

虽然服务已经启动,但这并没有发送信号

有关更多信息:

系统CTL状态beaver.service的输出是什么?