[Bug 296709] [patch] sysutils/go-ntfy: add files/newsyslog.conf and reconfigure daemon(8) for log rotaion
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 11 Jul 2026 20:15:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296709
Bug ID: 296709
Summary: [patch] sysutils/go-ntfy: add files/newsyslog.conf and
reconfigure daemon(8) for log rotaion
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: Individual Port(s)
Assignee: dtxdf@freebsd.org
Reporter: yds@Necessitu.de
Assignee: dtxdf@freebsd.org
Flags: maintainer-feedback?(dtxdf@freebsd.org)
Created attachment 272743
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=272743&action=edit
add files/newsyslog.conf and reconfigure daemon(8) for log rotaion
this patch fixes two issues:
1. daemon(8) PID file not being tracked making restarts not always work as
expected.
2. log files growing out of control without a newsyslog.conf to take care of
it.
- add files/newsyslog.conf
- files/ntfy.in: rename $procname to $program because $procname is "special"
and confuses PID tracking, while $program var name has no special meaning
therefore no side effects when stopping/restarting the service.
- files/ntfy.in: $command_args
- add -r to restart `ntfy` if it crashes
- add -H for log rotation
- change from -p to -P to make -H work and to make stop/restart work as
expected
- remeove -t to make `ps auxww|grep '(COMMAND$|ntfy)'` list both the parent
`daemon` and the child `ntfy` procs -- the old `-t '${desc}'` adds no value and
breaks the informative default info which helps identify which parent daemon
proc goes with which supervised child proc.
with the daemon(8) args changes, the pkg now:
- stops and restarts without any PID confusion
- log files get rotated via SIGHUP to the parent daemon(8) proc
previously files/ntfy.in was only tracking the child PID without tracking the
parent daemon(8) proc's PID -- this patch fixes it so that service(8) only
tracks the parent daemon(8) PID and ignores directly tracking the child `ntfy`
PID <- that's tracked by the daemon(8) proc. there's no need for files/ntfy.in
to track the child `ntfy` PID when daemon(8) is already doing that.
P.S. ntfy v2.26.0 dropped a few days ago fixing a potential DoS vulnerability:
https://github.com/binwiederhier/ntfy/releases
normally I'd include the upgrade with this patch, but I haven't figured out the
frontend build :(
--
You are receiving this mail because:
You are the assignee for the bug.