Bug 258004 - newsyslog(8): please make sending a HUP signal to syslogd(8) optional.
Summary: newsyslog(8): please make sending a HUP signal to syslogd(8) optional.
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-23 11:10 UTC by László Károlyi
Modified: 2021-08-24 13:10 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description László Károlyi 2021-08-23 11:10:49 UTC
Hey,

on my FreeBSD box I use jails for which one global syslogd on the host that is responsible for collecting the logs through /dev/log.

The daemons that run in the jails, are configured to log under /var/log respectively.

I use newsyslog(8) to rotate their logs, but because of the aforementioned situation, there is no syslogd(8) within the jail to send a HUP signal to. 

Newsyslog won't run without it being able to send a HUP signal to syslogd so as a workaround, I've specified it `-S /var/run/cron.pid` to send the signal to cron (which does nothing normally).

My humble request would be, please make the sending of a HUP signal to syslogd optional. Not every jail I use has cron running in it, and so log rotation can become a pain.