From: Lennart Poettering Date: Fri, 18 Jun 2010 18:26:05 +0000 (+0200) Subject: systemctl: don't fail if first argument to shutdown isn't 'now' just warn loudly. X-Git-Tag: v1~154 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=4545812fbee75ddbeae7f09cfb461e9b7a93cb84;ds=inline systemctl: don't fail if first argument to shutdown isn't 'now' just warn loudly. --- diff --git a/src/systemctl.c b/src/systemctl.c index 6a7a9bdd6..444ddf370 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -1741,10 +1741,8 @@ static int shutdown_parse_argv(int argc, char *argv[]) { } } - if (argc > optind && !streq(argv[optind], "now")) { - log_error("Expected 'now' argument."); - return -EINVAL; - } + if (argc > optind && !streq(argv[optind], "now")) + log_warning("First argument '%s' isn't 'now'. Ignoring.", argv[optind]); /* We ignore the time argument */ if (argc > optind + 1)