allow a simple upgrade path for service files by ignoring unknown config items instead of failing on them
This commit is contained in:
+2
-2
@@ -44,8 +44,8 @@ static int next_assignment(
|
||||
return t->parse(filename, line, section, lvalue, rvalue, t->data, userdata);
|
||||
}
|
||||
|
||||
log_error("[%s:%u] Unknown lvalue '%s' in section '%s'.", filename, line, lvalue, strna(section));
|
||||
return -EBADMSG;
|
||||
log_info("[%s:%u] Unknown lvalue '%s' in section '%s'. Ignoring.", filename, line, lvalue, strna(section));
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Returns non-zero when c is contained in s */
|
||||
|
||||
Reference in New Issue
Block a user