我已经在 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