【环境信息】
【问题复现步骤】
1. 安装包mrtg
2. 修改/etc/mrtg/mrtg.cfg, 添加内容如下:
RunAsDaemon: yes
NoDetach: yes
3. sed -i 's\mrtg.ok\mrtg.ok --daemon\g' /usr/lib/systemd/system/mrtg.service
4. systemctl daemon-reload
5. 启动服务并查询状态
systemctl start mrtg
systemctl status mrtg
6. 停止服务并查询状态
systemctl stop mrtg
systemctl status mrtg
【预期结果】
停止服务后,查询服务状态返回正常
【实际结果】
停止后查询状态报错
【附件信息】
Hi duanxuemin, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Application, and any of the maintainers: @Alex_Chao , @small_leek , @jimmy_hero , @朱春意 , @caodongxia
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
该服务stop失败,非问题
因为该服务为检测服务,要一直在后台,只要杀掉进程,脚本就返回1
mrtg :ERROR: Bailout after SIG TERM
这个错误是接收到了SIGTERM信号,提醒用户服务出问题退出了
手动stop和出问题退出是一样的。
登录 后才可以发表评论