]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: fix cancel
authorEvgeny Vereshchagin <evvers@ya.ru>
Wed, 11 Nov 2015 00:03:24 +0000 (00:03 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Wed, 11 Nov 2015 00:03:24 +0000 (00:03 +0000)
http://www.freedesktop.org/software/systemd/man/systemctl.html#cancel%20JOB...
> If no job ID is specified, cancel all pending jobs

src/systemctl/systemctl.c

index 70871cf3e64a32431685f875c6e7ee2334497113..85deb4a76164c577d385a6c3e50eea4efc010cb4 100644 (file)
@@ -7439,7 +7439,7 @@ static int systemctl_main(int argc, char *argv[]) {
                 { "list-jobs",             VERB_ANY, VERB_ANY, 0,            list_jobs         },
                 { "list-machines",         VERB_ANY, VERB_ANY, 0,            list_machines     },
                 { "clear-jobs",            VERB_ANY, 1,        0,            daemon_reload     },
-                { "cancel",                2,        VERB_ANY, 0,            cancel_job        },
+                { "cancel",                VERB_ANY, VERB_ANY, 0,            cancel_job        },
                 { "start",                 2,        VERB_ANY, 0,            start_unit        },
                 { "stop",                  2,        VERB_ANY, 0,            start_unit        },
                 { "condstop",              2,        VERB_ANY, 0,            start_unit        }, /* For compatibility with ALTLinux */