diff options
author | Tom Gundersen <teg@jklm.no> | 2015-11-11 02:25:57 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-11-11 02:25:57 +0100 |
commit | 620b7793fcbb23f6d27d42b0374d3dddb256aa40 (patch) | |
tree | b4d280628805d698acbcdd831332feb90e8c2245 /src/systemctl | |
parent | 827d04b68b2bd87bbbd4995b02454e5fe0baa27b (diff) | |
parent | 6a32563caa883bd11da1b255c38358e481c42ad7 (diff) |
Merge pull request #1839 from evverx/fix-systemctl-cancel
systemctl: fix cancel
Diffstat (limited to 'src/systemctl')
-rw-r--r-- | src/systemctl/systemctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 3918d7e79b..7cbf9af991 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -7335,7 +7335,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 */ @@ -7709,5 +7709,5 @@ finish: release_busses(); - return r < 0 ? EXIT_FAILURE : r; + return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS; } |