2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-09-01 06:45:27 +00:00

Add command-line argument to set pid file name.

This commit is contained in:
Ted Lemon
1998-11-05 18:56:38 +00:00
parent 6603eed953
commit 23b217251f

View File

@@ -42,11 +42,11 @@
#ifndef lint #ifndef lint
static char ocopyright[] = static char ocopyright[] =
"$Id: dhcpd.c,v 1.52 1998/07/10 04:52:25 mellon Exp $ Copyright 1995, 1996, 1997, 1998 The Internet Software Consortium."; "$Id: dhcpd.c,v 1.53 1998/11/05 18:56:38 mellon Exp $ Copyright 1995, 1996, 1997, 1998 The Internet Software Consortium.";
#endif #endif
static char copyright[] = static char copyright[] =
"Copyright 1995, 1996 The Internet Software Consortium."; "Copyright 1995, 1996, 1997, 1998 The Internet Software Consortium.";
static char arr [] = "All rights reserved."; static char arr [] = "All rights reserved.";
static char message [] = "Internet Software Consortium DHCPD $Name: $"; static char message [] = "Internet Software Consortium DHCPD $Name: $";
@@ -144,6 +144,10 @@ int main (argc, argv, envp)
if (++i == argc) if (++i == argc)
usage (); usage ();
path_dhcpd_db = argv [i]; path_dhcpd_db = argv [i];
} else if (!strcmp (argv [i], "-pf")) {
if (++i == argc)
usage ();
path_dhcpd_pid = argv [i];
} else if (!strcmp (argv [i], "-t")) { } else if (!strcmp (argv [i], "-t")) {
/* test configurations only */ /* test configurations only */
#ifndef DEBUG #ifndef DEBUG