【发布时间】: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