]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdmon.c
mdmon: insist on creating .pid file at startup.
authorNeilBrown <neilb@suse.de>
Mon, 8 Feb 2010 03:30:46 +0000 (14:30 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 8 Feb 2010 06:26:18 +0000 (17:26 +1100)
commitfa716c83c5be8093e663e260e46e73ea9ad6facf
treed114ff6697fd4c85c090facb2a13ba52d19c1eeb
parent58a4ba2a6b66ac14fa0ebaf0ce40326582d31429
mdmon: insist on creating .pid file at startup.

Now that we don't "mdadm --takeover" until /var/run is writable
there is no need to continually try to create files in there.

So only create these files at startup and fail if they cannot be
made.  This means that to start an array with externally managed
metadata, either /var/run or ALT_RUN (e.g. /lib/init/rw) must be
writable.  To 'takeover' from a previous mdmon instance, /var/run
must be writable.

This means we don't need to worry about SIGHUP (which was once used to
tell us it was time to create .pid) and SIGALRM.

Signed-off-by: NeilBrown <neilb@suse.de>
managemon.c
mdmon.c
mdmon.h
monitor.c