systemctl: rename enqueue-marked-jobs to enqueue-marked
Closes #40883. As described in the issue, it's not "jobs" that are marked, and also the name is unnecessarilly long. I think we don't need any compatibility measures here. At least in the rpm world, package upgrade scripts go through the helper which is part of the package so the new systemctl and the new helper are upgraded together.
This commit is contained in:
@@ -332,16 +332,16 @@ int verb_start(int argc, char *argv[], void *userdata) {
|
||||
job_type = "start";
|
||||
mode = "isolate";
|
||||
suffix = ".target";
|
||||
} else if (streq(argv[0], "enqueue-marked-jobs") || arg_marked) {
|
||||
} else if (streq(argv[0], "enqueue-marked") || arg_marked) {
|
||||
is_enqueue_marked_jobs = true;
|
||||
method = job_type = mode = NULL;
|
||||
|
||||
if (arg_show_transaction)
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
|
||||
"--show-transaction is not supported for enqueue-marked-jobs.");
|
||||
"--show-transaction is not supported for enqueue-marked.");
|
||||
|
||||
if (arg_marked)
|
||||
log_warning("--marked is deprecated. Please use systemctl enqueue-marked-jobs instead.");
|
||||
log_warning("--marked is deprecated. Please use systemctl enqueue-marked instead.");
|
||||
|
||||
} else {
|
||||
/* A command in style of "systemctl start <unit1> <unit2> …", "systemctl stop <unit1> <unit2> …" and so on */
|
||||
|
||||
Reference in New Issue
Block a user