1 |
/* |
2 |
* Hydra, an http server |
3 |
* Copyright (C) 1998 Jon Nelson <jnelson@boa.org> |
4 |
* |
5 |
* This program is free software; you can redistribute it and/or modify |
6 |
* it under the terms of the GNU General Public License as published by |
7 |
* the Free Software Foundation; either version 1, or (at your option) |
8 |
* any later version. |
9 |
* |
10 |
* This program is distributed in the hope that it will be useful, |
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
* GNU General Public License for more details. |
14 |
* |
15 |
* You should have received a copy of the GNU General Public License |
16 |
* along with this program; if not, write to the Free Software |
17 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
18 |
* |
19 |
*/ |
20 |
|
21 |
/* $Id: timestamp.c,v 1.5 2002/09/28 16:32:37 nmav Exp $*/ |
22 |
|
23 |
#include "boa.h" |
24 |
|
25 |
void timestamp(void) |
26 |
{ |
27 |
log_error_time(); |
28 |
fprintf(stderr, "%s: server version %s\n", SERVER_NAME, SERVER_VERSION); |
29 |
log_error_time(); |
30 |
fprintf(stderr, "%s: server built " __DATE__ " at " __TIME__ ".\n", SERVER_NAME); |
31 |
log_error_time(); |
32 |
fprintf(stderr, "%s: starting server pid=%d", SERVER_NAME, getpid()); |
33 |
if (server_port && boa_ssl != 1) |
34 |
fprintf(stderr, ", port=%d", server_port); |
35 |
if (ssl_port && boa_ssl > 0) |
36 |
fprintf(stderr, ", SSL port=%d", ssl_port); |
37 |
fprintf(stderr, "\n"); |
38 |
} |