mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
use ns_g_defaultpidfile
This commit is contained in:
parent
68e46ce9ee
commit
bfc2d518d1
2 changed files with 2 additions and 3 deletions
|
|
@ -75,8 +75,7 @@ EXTERN isc_boolean_t ns_g_coreok INIT(ISC_TRUE);
|
|||
EXTERN const char * ns_g_chrootdir INIT(NULL);
|
||||
EXTERN isc_boolean_t ns_g_foreground INIT(ISC_FALSE);
|
||||
|
||||
EXTERN const char * ns_g_defaultpidfile INIT("/var/run/named.pid");
|
||||
EXTERN char * ns_g_pidfile INIT(NULL);
|
||||
EXTERN char * ns_g_defaultpidfile INIT("/var/run/named.pid");
|
||||
EXTERN const char * ns_g_username INIT(NULL);
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -876,7 +876,7 @@ load_configuration(const char *filename, ns_server_t *server,
|
|||
|
||||
if (dns_c_ctx_getpidfilename(configctx, &pidfilename) ==
|
||||
ISC_R_NOTFOUND)
|
||||
pidfilename = "/var/run/named.pid";
|
||||
pidfilename = ns_g_defaultpidfile;
|
||||
ns_os_writepidfile(pidfilename);
|
||||
|
||||
dns_aclconfctx_destroy(&aclconfctx);
|
||||
|
|
|
|||
Loading…
Reference in a new issue