24 Aug 2012 11:57
[PATCH] debian: symlink mdmon pidfile into /run/sendsigs.omit.d
Miquel van Smoorenburg <mikevs <at> xs4all.net>
2012-08-24 09:57:27 GMT
2012-08-24 09:57:27 GMT
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. See also debian bug 684708 at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684708 , where I submitted a previous version of this patch. Comments welcome. Thanks, Mike.
Index: mdadm-3.2.5/mdmon.c
===================================================================
--- mdadm-3.2.5.orig/mdmon.c 2012-08-13 09:46:43.205209547 +0000
+++ mdadm-3.2.5/mdmon.c 2012-08-24 09:44:45.472421616 +0000
<at> <at> -142,6 +142,9 <at> <at>
static int make_pidfile(char *devname)
{
+#ifdef SENDSIGS_OMIT_DIR
+ char sendsigs_omit_path[100];
+#endif
char path[100];
(Continue reading)
RSS Feed