我有一个具有OnFailure处理程序(另一个服务)的systemd单元。如果我使用systemctl重新启动单元,则单元停止,导致OnFailure处理程序运行。然而,该单元没有失败 - 我只想重新启动它,并且需要阻止OnFailure运行。
root@device:/etc/systemd/system# systemctl restart myservice
[ 159.194237] systemd[1]: Stopping myservice...
[ 159.224148] systemd[1]: myservice.service: main process exited, code=killed, status=3/QUIT
[ 159.224812] systemd[1]: myservice.service entered failed state.
[ 159.225363] systemd[1]: Triggering OnFailure= dependencies of myservice.service.
[ 159.225905] systemd[1]: Starting Handling myservice on Failure...
[ 159.227664] systemd[1]: Starting myservice...
Job for myservice.service canceled.
OS是Debian 8(Jessie)
答案 0 :(得分:0)
可能pdftotext
中的命令产生错误导致服务进入失败状态。