2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 06:15:55 +00:00

Support environment variables to control locations of files.

This commit is contained in:
Ted Lemon
2000-07-17 20:56:14 +00:00
parent 47082c658b
commit cfa7212d26
3 changed files with 42 additions and 3 deletions

View File

@@ -43,7 +43,7 @@
#ifndef lint
static char ocopyright[] =
"$Id: dhcrelay.c,v 1.41 2000/05/16 23:03:30 mellon Exp $ Copyright (c) 1997-2000 Internet Software Consortium. All rights reserved.\n";
"$Id: dhcrelay.c,v 1.42 2000/07/17 20:56:14 mellon Exp $ Copyright (c) 1997-2000 Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -124,6 +124,7 @@ int main (argc, argv, envp)
int no_daemon = 0;
int quiet = 0;
isc_result_t status;
char *s;
#ifdef SYSLOG_4_2
openlog ("dhcrelay", LOG_NDELAY);
@@ -214,6 +215,10 @@ int main (argc, argv, envp)
}
}
if ((s = getenv ("PATH_DHCRELAY_PID"))) {
path_dhcrelay_pid = s;
}
if (!quiet) {
log_info ("%s %s", message, DHCP_VERSION);
log_info (copyright);