pidfile for multiprocess daemons
Kevin Bowling
kevin.bowling at kev009.com
Fri Mar 11 08:57:49 UTC 2016
Hi,
I'd like some insight from somebody familiar with rc.subr on
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207896.
Zabbix uses SysV shared memory and semaphores to communicate between
multiple processes. Those are cleaned up when the master process is
SIGTERMed. So the obvious deficiency here was setting pidfile. Except
pidfile still SIGTERMed all the children.. it seemed to still be using
check_process to get all the PIDs on stop. So I added rc_pid in addition
and it work as I expected. That seems strange as it's not documented and
my read of the code indicates that pidfile was intended to be "enough".
Any advice?
Regards,
More information about the freebsd-rc
mailing list