]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: don't warn if BusName= is used for non-Type=dbus services
authorLennart Poettering <lennart@poettering.net>
Sat, 12 Sep 2020 13:52:02 +0000 (15:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 14 Sep 2020 09:07:12 +0000 (11:07 +0200)
It's useful for more than just Type=dbus now, given #16976. Hence, let's
drop the warning.

src/core/service.c

index 03493fd04b79dc87dbd25bcb66eb4a8693adb312..ad6c2d4ddefb70d60cb30df9735dbaefb37f07da 100644 (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;