【问题标题】:systemctl exits mono service with status=0/SUCCESSsystemctl 以 status=0/SUCCESS 退出单声道服务
【发布时间】:2017-05-29 14:13:23
【问题描述】:

我正在尝试使用 systemctl 启动单声道程序。我的 .service 看起来像这样:

[Unit]
Description=Starts results sender
After=network.target systemd.mount

[Service]
Type=forking
ExecStart=/usr/bin/mono /home/ubuntu/CameraInfoSender/CameraInfoSender.exe

,但在执行任何工作之前,它会立即以(code=exited, status=0/SUCCESS) 退出。此命令在手动启动时有效。添加Retart=on-success 无济于事,WantedBy 也无济于事。任何帮助将不胜感激。

【问题讨论】:

    标签: service mono systemd systemctl


    【解决方案1】:

    检查您是否使用了适当的Type=Type= 选项记录在 man systemd.service 中。

    同时查看why things run in the shell but not via systemd的常见问题解答。

    【讨论】:

      猜你喜欢
      • 2019-11-05
      • 1970-01-01
      • 2018-09-03
      • 2018-08-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-10
      相关资源
      最近更新 更多