summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-18 20:26:05 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-18 20:26:05 +0200
commit4545812fbee75ddbeae7f09cfb461e9b7a93cb84 (patch)
tree01bb4494e33eb071ec44718ef613ec291234929c
parent442b90946ac317da602aef916a7bac29437368b2 (diff)
systemctl: don't fail if first argument to shutdown isn't 'now' just warn loudly.
-rw-r--r--src/systemctl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/systemctl.c b/src/systemctl.c
index 6a7a9bdd6d..444ddf370c 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)