Re: daemon(8) exit behavior
- In reply to: Souji Thenria : "Re: daemon(8) exit behavior"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Dec 2022 22:20:56 UTC
Souji Thenria <mail@souji-thenria.net> writes: > On 12/26/22 18:18, Nathan Huff wrote: >> >> 1. Is there any interest in upstreaming this? >> > > Because I run in to this problem as well in the past, I would be most > interested in this. > I have submitted https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268580 with the patch. > > I think using the timeout limit which is used by FreeBSD when shutting > down the system, makes the most sens and would have some consistency > throughout the system, at leas in my opinion. I don't want to tie daemon too closely to the init system since I use it in other contexts at times so that is why I have the delay configurable. > Moreover, I think you should clean up the pidfile, if the daemon process > created it. IIRC that's also the current behavior. > The pidfiles do get cleaned up in my version. They just don't get cleaned up until the supervised process actually exits. With the current behavior the pidfiles can get removed even if the supervised process has not exited. -- Nathan Huff