All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miquel van Smoorenburg <mikevs@xs4all.net>
To: NeilBrown <neilb@suse.de>
Cc: Dmitrijs Ledkovs <xnox@debian.org>, linux-raid@vger.kernel.org
Subject: Re: [PATCH] debian: symlink mdmon pidfile into /run/sendsigs.omit.d
Date: Mon, 03 Sep 2012 16:50:37 +0200	[thread overview]
Message-ID: <5044C3BD.7060307@xs4all.net> (raw)
In-Reply-To: <20120824223152.527e1ced@notabene.brown>

On 24-08-12 2:31 PM, NeilBrown wrote:
> On Fri, 24 Aug 2012 13:49:52 +0200 Miquel van Smoorenburg <mikevs@xs4all.net>
> wrote:
>
>> On 24-08-12 1:12 PM, Dmitrijs Ledkovs wrote:
>>> On 24 August 2012 10:57, Miquel van Smoorenburg <mikevs@xs4all.net> 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.

      reply	other threads:[~2012-09-03 14:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-24  9:57 [PATCH] debian: symlink mdmon pidfile into /run/sendsigs.omit.d Miquel van Smoorenburg
2012-08-24 11:12 ` Dmitrijs Ledkovs
2012-08-24 11:49   ` Miquel van Smoorenburg
2012-08-24 12:31     ` NeilBrown
2012-09-03 14:50       ` Miquel van Smoorenburg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5044C3BD.7060307@xs4all.net \
    --to=mikevs@xs4all.net \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    --cc=xnox@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.