Commit 1c0669c3 authored by Michael Stapelberg's avatar Michael Stapelberg

systemctl: don’t skip native units when enabling/disabling sysv units

parent f1af5bc6
......@@ -4080,8 +4080,10 @@ static int enable_sysv_units(char **args) {
if (!found_sysv)
continue;
/* Mark this entry, so that we don't try enabling it as native unit */
args[f] = (char*) "";
if (!found_native) {
/* Mark this entry, so that we don't try enabling it as native unit */
args[f] = (char*) "";
}
log_info("Synchronizing state for %s with sysvinit using update-rc.d...", name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment