From: SourceForge.net <no...@so...> - 2012-12-20 16:48:16
|
Bugs item #3597805, was opened at 2012-12-20 08:48 Message generated for change (Tracker Item Submitted) made by hellerda You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=712784&aid=3597805&group_id=128809 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: sfcb Group: New Feature Status: Open Resolution: None Priority: 5 Private: No Submitted By: Dave Heller (hellerda) Assigned to: Chris Buccella (buccella) Summary: Restart HTTP daemon without restarting SFCB Initial Comment: There are situations where it is useful to be able to restart the SFCB HTTP daemon(s) without restarting SFCB entirely. For example, the user may wish to update SSL certificates on-the-fly when the system's identity is modified. It is only necessary to the HTTP daemons to accomplish this, and this is faster that restarting SFCB and all associated provider processes. This patch allows restart of all running HTTP daemons by sending SIGUSR2 to the SFCB Main process. If the user wishes to update SSL certificates (i.e. server.pem, file.pem, client.pem) this should be done prior to HTTP Daemon restart. The user may update the files or update the corresponding entries in sfcb.cfg to point to new files. To restart HTTP Daemon the user must send SIGUSR2 to the SFCB Main process (i.e. Provider Mgr process). The pid number of this process is identified by a syslog (M_INFO) message at startup: --- sfcbd V1.x.xx started - <pidnum> The Main process can also be identified using the "sfcb-ps" utility, available from the "extra" directory in SFCB v1.4. For testing, the following command will send the appropriate signal to the Main process: $ kill -USR2 $(sfcb-ps | grep Main | sed 's/^ *//' | cut -d' ' -f1) Note it is not recommended to use "sfcb-ps" for this purpose in a production environment since the script cannot guarantee to correctly identify Main in all cases. Instead the user should record the pid of Main at startup via the above syslog message. Note also it is not recommended (and not necessary) to send SIGUSR2 within the first few seconds of SFCB startup. This is LTC# 85531 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=712784&aid=3597805&group_id=128809 |