core: don't warn if BusName= is used for non-Type=dbus services

It's useful for more than just Type=dbus now, given #16976. Hence, let's
drop the warning.
This commit is contained in:
Lennart Poettering 2020-09-12 15:52:02 +02:00
parent 415f8a5bfe
commit 31d74c66e2
1 changed files with 0 additions and 3 deletions

View File

@ -589,9 +589,6 @@ static int service_verify(Service *s) {
return -ENOEXEC;
}
if (s->bus_name && s->type != SERVICE_DBUS)
log_unit_warning(UNIT(s), "Service has a D-Bus service name specified, but is not of type dbus. Ignoring.");
if (s->exec_context.pam_name && !IN_SET(s->kill_context.kill_mode, KILL_CONTROL_GROUP, KILL_MIXED)) {
log_unit_error(UNIT(s), "Service has PAM enabled. Kill mode must be set to 'control-group' or 'mixed'. Refusing.");
return -ENOEXEC;