6 Star 0 Fork 2

src-openEuler / opendmarc

 / 详情

[23.03RC1][arm/x86]opendmarc服务启动失败

已验收
缺陷
创建于  
2023-03-01 14:49

【环境信息】
输入图片说明
【问题复现步骤】
1. 安装包 yum install opendmarc-y
2. 启动服务 systemctl start opendmarc.service
3. 查询服务状态 systemctl status opendmarc.service
【预期结果】
服务启动成功
【实际结果】
服务启动失败
【附件信息】
输入图片说明

评论 (6)

clerk_duan 创建了缺陷

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: Base-service, and any of the maintainers: @hexiaowen , @Monday , @zhujianwei001 , @谢志鹏 , @陈棋德 , @openeuler-ci-bot

openeuler-ci-bot 添加了
 
sig/Base-service
标签
clerk_duan 负责人设置为Monday
clerk_duan 计划截止日期设置为2023-03-02
clerk_duan 计划开始日期设置为2023-03-01
clerk_duan 优先级设置为主要
clerk_duan 修改了描述
clerk_duan 修改了标题
Monday 通过src-openeuler/opendmarc Pull Request !3任务状态待办的 修改为已完成

opendmarc服务启动失败:
[root@localhost opendmarc-new]# systemctl status opendmarc
× opendmarc.service - Domain-based Message Authentication, Reporting & Conformance (DMARC) Milter
Loaded: loaded (/usr/lib/systemd/system/opendmarc.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2023-03-01 03:03:50 CST; 7s ago
Docs: man:opendmarc(8)
man:opendmarc.conf(5)
man:opendmarc-import(8)
man:opendmarc-reports(8)
http://www.trusteddomain.org/opendmarc/
** Process: 8621 ExecStart=/usr/sbin/opendmarc -f (code=exited, status=69)**
Main PID: 8621 (code=exited, status=69)

3月 01 03:03:50 localhost.localdomain systemd[1]: opendmarc.service: Scheduled restart job, restart counter is at 5.
3月 01 03:03:50 localhost.localdomain systemd[1]: Stopped Domain-based Message Authentication, Reporting & Conformance (DMARC) Milter.
3月 01 03:03:50 localhost.localdomain systemd[1]: opendmarc.service: Start request repeated too quickly.
3月 01 03:03:50 localhost.localdomain systemd[1]: opendmarc.service: Failed with result 'exit-code'.
3月 01 03:03:50 localhost.localdomain systemd[1]: Failed to start Domain-based Message Authentication, Reporting & Conformance (DMARC) M>

经过查看日志,发现为ExecStart=/usr/sbin/opendmarc -f 参数未生效,导致配置文件未导入,服务启动失败
修改后:
[root@localhost opendmarc-new]# systemctl status opendmarc
● opendmarc.service - Domain-based Message Authentication, Reporting & Conformance (DMARC) Milter
Loaded: loaded (/usr/lib/systemd/system/opendmarc.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2023-03-02 14:34:03 CST; 1s ago
Docs: man:opendmarc(8)
man:opendmarc.conf(5)
man:opendmarc-import(8)
man:opendmarc-reports(8)
http://www.trusteddomain.org/opendmarc/
Main PID: 5164 (opendmarc)
Tasks: 3 (limit: 37503)
Memory: 656.0K
CGroup: /system.slice/opendmarc.service
** └─ 5164 /usr/sbin/opendmarc -f -c /etc/opendmarc.conf**

service 配置文件:
[root@localhost opendmarc-new]# cat /usr/lib/systemd/system/opendmarc.service
[Unit]
Description=Domain-based Message Authentication, Reporting & Conformance (DMARC) Milter
Documentation=man:opendmarc(8) man:opendmarc.conf(5) man:opendmarc-import(8) man:opendmarc-reports(8) http://www.trusteddomain.org/opendmarc/
After=network.target nss-lookup.target syslog.target

[Service]
Type=simple
RuntimeDirectory=opendmarc
RuntimeDirectoryMode=0750
EnvironmentFile=-/etc/sysconfig/opendmarc
ExecStart=/usr/sbin/opendmarc -f $OPTIONS
ExecReload=/bin/kill -USR1 $MAINPID
Restart=on-failure
User=opendmarc
Group=opendmarc
Umask=0007
ReadWritePaths=/var/spool/opendmarc
ProtectSystem=strict
ProtectHome=true

[Install]
WantedBy=multi-user.target


ExecStart=/usr/sbin/opendmarc -f $OPTIONS
ExecReload=/bin/kill -USR1 $MAINPID
以上两个配置生效后,问题解决

在23.03RC2上验证结果如下:
x86:
输入图片说明
arm:
输入图片说明

clerk_duan 任务状态已完成 修改为已验收

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/opendmarc.git
git@gitee.com:src-openeuler/opendmarc.git
src-openeuler
opendmarc
opendmarc

搜索帮助