1 |
nmav |
1.1 |
/* |
2 |
nmav |
1.5 |
* Hydra, an http server |
3 |
nmav |
1.1 |
* 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 |
nmav |
1.5 |
/* $Id: timestamp.c,v 1.4 2002/09/25 19:55:53 nmav Exp $*/ |
22 |
nmav |
1.1 |
|
23 |
|
|
#include "boa.h" |
24 |
|
|
|
25 |
|
|
void timestamp(void) |
26 |
|
|
{ |
27 |
|
|
log_error_time(); |
28 |
nmav |
1.4 |
fprintf(stderr, "%s: server version %s\n", SERVER_NAME, SERVER_VERSION); |
29 |
nmav |
1.1 |
log_error_time(); |
30 |
nmav |
1.4 |
fprintf(stderr, "%s: server built " __DATE__ " at " __TIME__ ".\n", SERVER_NAME); |
31 |
nmav |
1.1 |
log_error_time(); |
32 |
nmav |
1.4 |
fprintf(stderr, "%s: starting server pid=%d", SERVER_NAME, getpid()); |
33 |
nmav |
1.2 |
if (server_port && boa_ssl != 1) |
34 |
|
|
fprintf(stderr, ", port %d", server_port); |
35 |
|
|
if (ssl_port && boa_ssl > 0) |
36 |
nmav |
1.3 |
fprintf(stderr, ", SSL port %d", ssl_port); |
37 |
nmav |
1.2 |
fprintf(stderr, "\n"); |
38 |
nmav |
1.1 |
} |