1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-22 06:50:18 +03:00

systemctl: don't fail if first argument to shutdown isn't 'now' just warn loudly.

This commit is contained in:
Lennart Poettering 2010-06-18 20:26:05 +02:00
parent 442b90946a
commit 4545812fbe

View File

@ -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)