Sye*_*yed 31 linux centos systemd
如何消除以下错误:
systemd: Failed at step USER spawning /usr/sbin/opendkim: No such process
Run Code Online (Sandbox Code Playgroud)
当我尝试在 Centos 上启动 opendkim 服务时会发生这种情况。
Tad*_*spy 30
我刚刚遇到了这个问题,就我而言,它是由在我的服务文件中引用用户名引起的:
[Unit]
Description=Demonstrate Failed at step USER spawning ...: No such process error when user name is quoted
[Service]
User="tadeusz"
ExecStart=/bin/echo hello
[Install]
WantedBy=multi-user.target
Run Code Online (Sandbox Code Playgroud)
在 Ubuntu 16.04.2 LTS(Amazon EC2 实例)上启动此服务将失败并显示以下错误:
user-example.service: Failed at step USER spawning /bin/echo: No such process
Run Code Online (Sandbox Code Playgroud)
有趣的是,在 Ubuntu Gnome 17.04(我的本地机器)上,错误信息更有帮助:
[/etc/systemd/system/user-example.service:5] Invalid user/group name or numeric ID, ignoring: "tadeusz"
Run Code Online (Sandbox Code Playgroud)
在两种环境中删除引号解决了问题:
[Service]
User=tadeusz
Run Code Online (Sandbox Code Playgroud)
小智 5
检查 的配置文件中是否存在以下记录opendkim
:
## Attempt to become the specified user before starting operations.
UserID opendkim:opendkim
小智 5
对我来说,这是一个使用错误用户名的简单问题,请确认您使用的是正确的用户
[Service]
User=tadeusz
然后重新加载您的 SytemD sudo systemctl daemon-reload
归档时间: |
|
查看次数: |
96066 次 |
最近记录: |