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
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 */
#ifndef CONF
@ -515,7 +515,7 @@ static void dotrim(log,pid_file,numdays,flags,perm,owner_uid,group_gid)
if (notified) {
if (verbose)
printf("small pause to allow daemon to close log\n");
sleep(3);
sleep(10);
}
compress_log(log);
}