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:
parent
442b90946a
commit
4545812fbe
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user