Ensure that newsyslog -n prints the correct message for a rotation rule
that uses the 'R' flag. Reviewed by: gad Approved by: rstone (co-mentor) MFC after: 1 week
This commit is contained in:
parent
3b58eef59e
commit
6df0ff43f0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245962
@ -1900,10 +1900,15 @@ do_sigwork(struct sigwork_entry *swork)
|
||||
}
|
||||
|
||||
if (noaction) {
|
||||
printf("\tkill -%d %d \t\t# %s\n", swork->sw_signum,
|
||||
(int)swork->sw_pid, swork->sw_fname);
|
||||
if (secs > 0)
|
||||
printf("\tsleep %d\n", secs);
|
||||
if (swork->run_cmd)
|
||||
printf("\tsh -c '%s %d'\n", swork->sw_fname,
|
||||
swork->sw_signum);
|
||||
else {
|
||||
printf("\tkill -%d %d \t\t# %s\n", swork->sw_signum,
|
||||
(int)swork->sw_pid, swork->sw_fname);
|
||||
if (secs > 0)
|
||||
printf("\tsleep %d\n", secs);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user