summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2017-09-08 13:34:30 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2017-09-08 13:34:30 +0000
commit4c9004c97e39c22ed927f5eb35bdb44c11215d75 (patch)
tree8ca0a74604933967b1c3980ecc1b2df8a9786792
parentd7bcf2564fd699f188f9ed6e12fccba2317369f0 (diff)
Bring back the "Exiting" log message in pflogd(8), but do not set
the LOG_CONS flag in openlog(3). This avoids output to the console on shutdown. Discussed with benno@ who wants to see when a deamon stops during normal system operation. OK brynet@
-rw-r--r--sbin/pflogd/pflogd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/pflogd/pflogd.c b/sbin/pflogd/pflogd.c
index 34f13dc3219..8058ad02259 100644
--- a/sbin/pflogd/pflogd.c
+++ b/sbin/pflogd/pflogd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pflogd.c,v 1.56 2017/09/06 12:43:16 brynet Exp $ */
+/* $OpenBSD: pflogd.c,v 1.57 2017/09/08 13:34:29 bluhm Exp $ */
/*
* Copyright (c) 2001 Theo de Raadt
@@ -592,7 +592,7 @@ main(int argc, char **argv)
}
if (!Debug) {
- openlog("pflogd", LOG_PID | LOG_CONS, LOG_DAEMON);
+ openlog("pflogd", LOG_PID, LOG_DAEMON);
if (daemon(0, 0)) {
logmsg(LOG_WARNING, "Failed to become daemon: %s",
strerror(errno));
@@ -686,6 +686,7 @@ main(int argc, char **argv)
}
}
+ logmsg(LOG_NOTICE, "Exiting");
if (dpcap) {
flush_buffer(dpcap);
fclose(dpcap);