How can I list the queued units with systemctl?

How can I list the queued units with systemctl?

我的systemctl status节目:

● mymachine
     State: running
     Jobs: 4 queued

How can I list the queued jobs?

This answer shows how to list the failed units, but I can't find any docs on how to list those 4 queued units, nor is it clear to me which state in systemctl list-units --state=help corresponds to those.

答案1

It is: systemctl list-jobs

Example output:

# systemctl list-jobs
 JOB UNIT                                  TYPE  STATE  
3543 nginxAfterGlusterfs.service           start waiting
3545 glusterReadyForLocalhostMount.service start running
3506 nginx.service                         start waiting

4 jobs listed.

Those units also have a start entry in the JOB column in the systemctl table.

相关内容