On 24-08-12 2:31 PM, NeilBrown wrote:
On Fri, 24 Aug 2012 13:49:52 +0200 Miquel van Smoorenburg <mikevs@xxxxxxxxxx>
wrote:
On 24-08-12 1:12 PM, Dmitrijs Ledkovs wrote:
On 24 August 2012 10:57, Miquel van Smoorenburg <mikevs@xxxxxxxxxx> wrote:
Some daemons should not be killed when the system is shutting down. In
debian this is achieved by putting a file with the pid of the daemon in it
in /run/sendsigs.omit.d (or a symlink to its pidfile).
This patch lets mdmon automatically create a symlink in /run/sendsigs.omit.d
to its pidfile.
However if we only need to protect things at shutdown I wonder it you could
just add something like:
cd /run/mdadm/
for file in md*.pid
do ln -s /run/mdadm/$file /.../sendsigs.omit.d/mdadm-$file
done
in some script that gets run before the 'killall' happens.
Yes that would work. Very good idea!
Forget about the patch. I'll just add something like that to the stop
section of the mdadm-raid initscript.
Thanks!
Mike.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html