From c94667bcf51bb20ac90980f6cbb481771257ffe2 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 2 Jul 2014 22:58:05 +0200 Subject: do not send output to syslog AND stderr This resulted in syslog receiving logs twice when started from systemd. --- dyndhcpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dyndhcpd.c b/dyndhcpd.c index 48e80fb..8bc1f34 100644 --- a/dyndhcpd.c +++ b/dyndhcpd.c @@ -281,9 +281,9 @@ int main(int argc, char ** argv) { * dyndhcpd is cleared from memory here and code below is not execuded if * everything goes well */ if (verbose > 1) - printf("Running: dhcpd -f -d -q -4 -pf %s -lf %s -cf %s %s\n", + printf("Running: dhcpd -f -q -4 -pf %s -lf %s -cf %s %s\n", pidfile, leasesfile, filename, interface); - rc = execlp(DHCPDFILE, "dhcpd", "-f", "-d", "-q", "-4", + rc = execlp(DHCPDFILE, "dhcpd", "-f", "-q", "-4", "-pf", pidfile, "-lf", leasesfile, "-cf", filename, interface, NULL); fprintf(stderr, "The dhcp daemon failed to execute.\n"); -- cgit v1.2.3-70-g09d2