由于某种原因在 Centos 7 上新编译的 dovecot 2.3.9.3 无法启动
● dovecot.service - LSB: Dovecot init script
Loaded: loaded (/etc/rc.d/init.d/dovecot; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2020-03-19 15:15:37 UTC; 54s ago
Docs: man:systemd-sysv-generator(8)
Process: 20398 ExecStart=/etc/rc.d/init.d/dovecot start (code=exited, status=203/EXEC)
Mar 19 15:15:37 systemd[1]: Starting LSB: Dovecot init script...
Mar 19 15:15:37 systemd[1]: dovecot.service: control process exited, code=exited status=203
Mar 19 15:15:37 systemd[1]: Failed to start LSB: Dovecot init script.
Mar 19 15:15:37 systemd[1]: Unit dovecot.service entered failed state.
Mar 19 15:15:37 systemd[1]: dovecot.service failed.
我在 Centos 6 上编译了相同的代码并且运行它没有问题。
还检查是否在系统启动时启用它会抛出
dovecot.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig dovecot on
对这件事有什么想法吗?我需要改变一些东西才能让它工作systemd
吗?
我发现我缺少
dovecot.service
来自/etc/systemd/system/
.我使用
dovecot.service.in
来自 Dovecot 源的文件作为示例来为我的环境创建文件。