diff options
author | Christian Hesse <mail@eworm.de> | 2014-07-02 22:58:05 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-07-02 22:58:05 +0200 |
commit | c94667bcf51bb20ac90980f6cbb481771257ffe2 (patch) | |
tree | 54c77da00b1846e0014325386dbb6d43ce40352f | |
parent | ff7da0fced4c231040e8acbab8597b6c7adca804 (diff) | |
download | dyndhcpd-c94667bcf51bb20ac90980f6cbb481771257ffe2.tar.gz dyndhcpd-c94667bcf51bb20ac90980f6cbb481771257ffe2.tar.zst |
do not send output to syslog AND stderr
This resulted in syslog receiving logs twice when started from systemd.
-rw-r--r-- | dyndhcpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); |