aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-07-02 22:58:05 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-07-02 22:58:05 +0200
commitc94667bcf51bb20ac90980f6cbb481771257ffe2 (patch)
tree54c77da00b1846e0014325386dbb6d43ce40352f
parentff7da0fced4c231040e8acbab8597b6c7adca804 (diff)
downloaddyndhcpd-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.c4
1 files 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");