atd 队列中卡住的作业

atd 队列中卡住的作业

我在使用 Bionic(18.04.4)并且发现我的作业卡在队列中并且从未运行!

[root@myhost2: log]# atq
3267   Tue Jun 16 03:34:00 2020 = root
697    Mon Jun 15 19:36:00 2020 = root
3268   Tue Jun 16 03:34:00 2020 = root
3265   Tue Jun 16 03:31:00 2020 = root
7566   Tue Jun 16 22:17:00 2020 a root
7563   Tue Jun 16 22:16:00 2020 a root
697    Mon Jun 15 19:36:00 2020 a root

[root@myhost2: log]# service atd status 
* atd.service - Deferred execution scheduler
   Loaded: loaded (/lib/systemd/system/atd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2020-06-16 14:03:35 PDT; 8h ago
     Docs: man:atd(8)
Main PID: 731 (atd)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/atd.service
       `-731 /usr/sbin/atd -f

Jun 16 22:20:21 myhost2 atd[19018]: File a002b90194efbc is in wrong format - aborting
Jun 16 22:20:21 myhost2 atd[19019]: File a002b90194efbc is in wrong format - aborting
Jun 16 22:20:21 myhost2 atd[19020]: File a002b90194efbc is in wrong format - aborting
Jun 16 22:20:21 myhost2 atd[19021]: File a002b90194efbc is in wrong format - aborting

指向的文件(a002b90194efbc)是空的

如果我删除后台处理程序中的文件并重新启动,它就会恢复正常,但不确定什么时候它会回到相同的糟糕状态!

我如何确保永远不会陷入这种卡住状态!?或者,如果卡住了,有什么方法可以自动恢复?

- 谢谢

相关内容