systemd 服务失败

systemd 服务失败

我无缘无故地认为 Nzbget 已停止运行。我没有做任何更改,服务只是停止并拒绝重新启动。

 sudo systemctl status nzbget -l
 * nzbget.service - NZBGet Daemon
 Loaded: loaded (/etc/systemd/system/nzbget.service; enabled)
 Active: failed (Result: start-limit) since Sun 2016-05-01 06:23:27 BST; 2min 46s ago
Process: 596 ExecStop=/opt/nzbget/nzbget -Q (code=exited, status=0/SUCCESS)  Process: 586 ExecStart=/opt/nzbget/nzbget -c /opt/nzbget/nzbget.conf -D (code=exited, status=0/SUCCESS)
 Main PID: 588 (code=killed, signal=ABRT)

May 01 06:23:27 osmc systemd[1]: Unit nzbget.service entered failed state.
May 01 06:23:27 osmc systemd[1]: nzbget.service start request repeated too quickly, refusing to start.
May 01 06:23:27 osmc systemd[1]: Failed to start NZBGet Daemon.
May 01 06:23:27 osmc systemd[1]: Unit nzbget.service entered failed state.

这是日志;

osmc@osmc:~/Downloads$ 
cat nzbget.log 
Sun May 1 06:38:44 2016 INFO nzbget 16.4 daemon-mode 
Sun May 1 06:38:44 2016 INFO nzbget 16.4 daemon-mode 
Sun May 1 06:38:45 2016 INFO nzbget 16.4 daemon-mode 
Sun May 1 06:38:45 2016 INFO nzbget 16.4 daemon-mode 
Sun May 1 06:38:46 2016 INFO nzbget 16.4 daemon-mode

这是服务;

[Unit]
Description=NZBGet Daemon
After=network.target
RequiresMountsFor=/mnt/

[Service]
User=osmc
Group=osmc
Type=forking
ExecStart=/opt/nzbget/nzbget -c /opt/nzbget/nzbget.conf -D
ExecStop=/opt/nzbget/nzbget -Q
ExecReload=/opt/nzbget/nzbget -O
KillMode=process
Restart=on-failure

[Install]
WantedBy=multi-user.target

答案1

奇怪的一个。我删除了以下文件夹中的所有文件;

Nzb,中间,队列

重新启动服务就成功了。不知道为什么,但现在一切又恢复正常了

相关内容