Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Mar 2016 01:57:48 -0700
From:      Kevin Bowling <kevin.bowling@kev009.com>
To:        freebsd-rc@freebsd.org
Subject:   pidfile for multiprocess daemons
Message-ID:  <CAK7dMtDnds6NA=Kn%2B3PAiHuz_fOp4rtvb_bJr0xUuJUqeT7R1Q@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAK7dMtDnds6NA=Kn%2B3PAiHuz_fOp4rtvb_bJr0xUuJUqeT7R1Q>