Sleep 10secs after kill -HUP instead of 3secs, some daemons like Apache
may have log time to re-configure
This commit is contained in:
parent
609e31cc38
commit
19df0544a0
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user