]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdmon: recreate socket/pid file on SIGHUP
authorDan Williams <dan.j.williams@intel.com>
Tue, 16 Sep 2008 03:58:43 +0000 (20:58 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 16 Sep 2008 03:58:43 +0000 (20:58 -0700)
commit295646b3d59c7d8d8c389ff320b30e61552ba331
tree150b20b04a0c112123e35cbca62e40ac7d525918
parent313a4a82f130e6668ba0f4550200662e168aa945
mdmon: recreate socket/pid file on SIGHUP

Allow mdmon to start while /var/run/mdadm is readonly.  Later a SIGHUP
can trigger mdmon to drop its pid and socket once /var/run/mdadm is
writable.  Of course one needs the pid to send a HUP, that can be stored
in a distribution specific rw-init directory... For now, rely on a
killall -HUP mdmon to get the files dumped.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
managemon.c
mdmon.c
mdmon.h
mdstat.c