diff options
author | 2013-02-14 13:11:40 +0000 | |
---|---|---|
committer | 2013-02-14 13:11:40 +0000 | |
commit | e6a16d4841e6b742e4486907be5ca1683aea9bea (patch) | |
tree | 92260d854d62ae903f0ca86e2ac277b832b2b255 | |
parent | - change => to = in documentation (diff) | |
download | wireguard-openbsd-e6a16d4841e6b742e4486907be5ca1683aea9bea.tar.xz wireguard-openbsd-e6a16d4841e6b742e4486907be5ca1683aea9bea.zip |
- log smtpd version at startup
ok eric@
-rw-r--r-- | usr.sbin/smtpd/smtpd.c | 4 | ||||
-rw-r--r-- | usr.sbin/smtpd/smtpd.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c index ff62cbcc13d..8bdc6cee6ec 100644 --- a/usr.sbin/smtpd/smtpd.c +++ b/usr.sbin/smtpd/smtpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.c,v 1.187 2013/02/14 12:30:49 gilles Exp $ */ +/* $OpenBSD: smtpd.c,v 1.188 2013/02/14 13:11:40 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -759,6 +759,8 @@ main(int argc, char *argv[]) log_init(debug); log_verbose(verbose); + log_info("info: %s %s starting", SMTPD_NAME, SMTPD_VERSION); + if (!debug) if (daemon(0, 0) == -1) err(1, "failed to daemonize"); diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h index 724caf7ef82..c0bfeeb5462 100644 --- a/usr.sbin/smtpd/smtpd.h +++ b/usr.sbin/smtpd/smtpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.h,v 1.405 2013/02/14 12:30:49 gilles Exp $ */ +/* $OpenBSD: smtpd.h,v 1.406 2013/02/14 13:11:40 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -54,6 +54,7 @@ #ifndef SMTPD_NAME #define SMTPD_NAME "OpenSMTPD" #endif +#define SMTPD_VERSION "5.3" #define SMTPD_BANNER "220 %s ESMTP %s" #define SMTPD_SESSION_TIMEOUT 300 #define SMTPD_BACKLOG 5 |