mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-04 15:58:29 +00:00
systemctl: skip native unit file handling if sysv file handling already handled everything
Issue pointed out by Colin Guthrie.
(cherry picked from commit 67d6621059)
This commit is contained in:
committed by
Colin Guthrie
parent
e81566523e
commit
345151292f
@@ -4436,6 +4436,11 @@ static int enable_unit(DBusConnection *bus, char **args) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
/* If the operation was fully executed by the SysV compat,
|
||||
* let's finish early */
|
||||
if (strv_isempty(mangled_names))
|
||||
return 0;
|
||||
|
||||
if (!bus || avoid_bus()) {
|
||||
if (streq(verb, "enable")) {
|
||||
r = unit_file_enable(arg_scope, arg_runtime, arg_root, mangled_names, arg_force, &changes, &n_changes);
|
||||
|
||||
Reference in New Issue
Block a user