1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-28 08:02:54 +00:00

Sleep 10secs after kill -HUP instead of 3secs, some daemons like Apache

may have log time to re-configure
This commit is contained in:
Andrey A. Chernov 1997-11-30 18:58:18 +00:00
parent 609e31cc38
commit 19df0544a0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31460

View File

@ -27,7 +27,7 @@ provided "as is" without express or implied warranty.
#ifndef lint #ifndef lint
static const char rcsid[] = static const char rcsid[] =
"$Id: newsyslog.c,v 1.13 1997/05/06 23:11:06 brian Exp $"; "$Id: newsyslog.c,v 1.14 1997/10/06 07:46:08 charnier Exp $";
#endif /* not lint */ #endif /* not lint */
#ifndef CONF #ifndef CONF
@ -515,7 +515,7 @@ static void dotrim(log,pid_file,numdays,flags,perm,owner_uid,group_gid)
if (notified) { if (notified) {
if (verbose) if (verbose)
printf("small pause to allow daemon to close log\n"); printf("small pause to allow daemon to close log\n");
sleep(3); sleep(10);
} }
compress_log(log); compress_log(log);
} }