diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-05-03 14:42:49 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-05-03 14:42:49 +0200 |
commit | 7e2668c6fd5720ae4d2d55eb8a062739687516af (patch) | |
tree | 8930cf5aad74abdd93af0a543e65edeede457d6e /src/core/service.c | |
parent | 682fff73712b2203300d54813cb11adbf47b0eb6 (diff) |
service: warn if a dbus name is specified but the service type is not dbus
Diffstat (limited to 'src/core/service.c')
-rw-r--r-- | src/core/service.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/service.c b/src/core/service.c index 4358a948de..a99e1c3770 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -1135,6 +1135,9 @@ static int service_verify(Service *s) { return -EINVAL; } + if (s->bus_name && s->type != SERVICE_DBUS) + log_warning("%s has a D-Bus service name specified, but is not of type dbus. Ignoring.", UNIT(s)->id); + if (s->exec_context.pam_name && s->exec_context.kill_mode != KILL_CONTROL_GROUP) { log_error("%s has PAM enabled. Kill mode must be set to 'control-group'. Refusing.", UNIT(s)->id); return -EINVAL; |