diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2013-02-14 13:11:41 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2013-02-14 13:11:41 +0000 |
commit | 581aae6bf548d6cf05d4e1a0d27782e48cc5addd (patch) | |
tree | ee0843369a829f2e14c7ae91ddb75b154216e7d1 /usr.sbin | |
parent | d0f235ac4589560fe3907d12e285cef6fae21d31 (diff) |
- log smtpd version at startup
ok eric@
Diffstat (limited to 'usr.sbin')
-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 |