summaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/syslogd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index fb73095..24cab3b 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -512,6 +512,11 @@ static NOINLINE int create_socket(void)
int sock_fd;
char *dev_log_name;
+#if ENABLE_FEATURE_SYSTEMD
+ if (sd_listen_fds() == 1)
+ return SD_LISTEN_FDS_START;
+#endif
+
memset(&sunx, 0, sizeof(sunx));
sunx.sun_family = AF_UNIX;