Update the starting log message for keyd so it's clear when we've been
started up via systemd socket activation, which would have helped avoid
the long standing bug with building properly with systemd support.
/* Maximum number of clients we're prepared to accept at once */
#define MAX_CLIENTS 16
/* Maximum number of clients we're prepared to accept at once */
#define MAX_CLIENTS 16
static bool using_socket_activation = false;
static bool using_socket_activation = false;
static struct keyd_stats *stats;
static struct keyd_stats *stats;
dbctx = config.dbinit(config.backend, false);
dbctx = config.dbinit(config.backend, false);
- logthing(LOGTHING_NOTICE, "Accepting connections.");
+ logthing(LOGTHING_NOTICE, "Accepting connections%s",
+ using_socket_activation ? " (via systemd)" : "");
while (!cleanup() && select(maxfd + 1, &rfds, NULL, NULL, NULL) != -1) {
/*
* Deal with existing clients first; if we're at our
while (!cleanup() && select(maxfd + 1, &rfds, NULL, NULL, NULL) != -1) {
/*
* Deal with existing clients first; if we're at our