diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-04-10 03:27:19 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-04-10 03:27:19 +0200 |
commit | 4ac9236fa14696db3e8a650a083a238eca9b9ae9 (patch) | |
tree | 0943a4d11faae366f9121cabeaf4434ae799dd9d /src/socket.c | |
parent | 7a22745ac3c267edf89a23a920a28d86df5d0f9a (diff) |
socket: be a bit more verbose when refusing to start a socket unit
Diffstat (limited to 'src/socket.c')
-rw-r--r-- | src/socket.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/socket.c b/src/socket.c index 80adf16890..a8f8dc3a5e 100644 --- a/src/socket.c +++ b/src/socket.c @@ -1363,15 +1363,19 @@ static int socket_start(Unit *u) { /* Cannot run this without the service being around */ if (s->service) { - if (s->service->meta.load_state != UNIT_LOADED) + if (s->service->meta.load_state != UNIT_LOADED) { + log_error("Socket service %s not loaded, refusing.", s->service->meta.id); return -ENOENT; + } /* If the service is already active we cannot start the * socket */ if (s->service->state != SERVICE_DEAD && s->service->state != SERVICE_FAILED && - s->service->state != SERVICE_AUTO_RESTART) + s->service->state != SERVICE_AUTO_RESTART) { + log_error("Socket service %s already active, refusing.", s->service->meta.id); return -EBUSY; + } #ifdef HAVE_SYSV_COMPAT if (s->service->sysv_path) { |