【环境信息】
硬件信息:
1) 虚拟机 内存:4 GiB vCPU:1
软件信息:
openeulerversion=openEuler-21.03
compiletime=2021-02-23-17-45-36
gccversion=9.3.1-20210204.16.oe1
kernelversion=5.10.0-2.0.0.11.oe1
openjdkversion=1.8.0.282.b08-5.oe1
arch:arm x86
【问题复现步骤】
mysql使用版本为mysql5-server
1、配置
systemctl restart mysql
/usr/libexec/bacula/create_mysql_database
/usr/libexec/bacula/make_mysql_tables
alternatives --set libbaccats.so /usr/lib64/libbaccats-mysql.so
sed -i 's\dbuser = "bacula"\dbuser = "root"\g' /etc/bacula/bacula-dir.conf
2、启动服务:bacular-dir、bacular-fd、bacula-sd
3、停止服务:bacular-dir、bacular-fd、bacula-sd
出现概率:必现
【预期结果】
stop 后服务状态变成inactive
【实际结果】
stop 后服务状态变成failed
【附件信息】
比如系统message日志/组件日志、dump信息、图片等
Hey street_dust, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
bacula-dir、bacula-sd、bacula-fd服务的service文件中没有指定ExecStop,所以stop服务都是给进程发SIGTERM信号。分析代码发现注册的信号处理函数signal_handler收到几号信号最后也以该信号调用exit退出,推测systemctl认为非0退出的查询服务状态就是failure,按照代码的逻辑收到SIGTERM和SIGINT都属于进程正常退出的,因此在调用exit_handler(sig)之前判断当收到这两种信号就调用exit_handler参数传0
登录 后才可以发表评论