On startup, warn if inetd's config file doesn't exist. This isn't

exactly the same as patch from the PR, which also exited if the
config file was missing. I didn't use Jeff's patch because I was
worried that some people might start inetd, create the config file
and then HUP inetd.

PR:		60806
Submitted by:	Jeff Ito <jeffi@rcn.com>
MFC after:	2 weeks
This commit is contained in:
dwmalone 2004-03-22 12:01:23 +00:00
parent cac27479e9
commit 4a7f24365c

View File

@ -466,6 +466,8 @@ main(int argc, char **argv)
if (argc > 0)
CONFIG = argv[0];
if (access(CONFIG, R_OK) < 0)
syslog(LOG_ERR, "Accessing %s: %m, continuing anyway.", CONFIG);
if (debug == 0) {
FILE *fp;
if (daemon(0, 0) < 0) {