[Pkg-nagios-changes] [pkg-nagios] r888 - nagios2/trunk/debian

Marc Haber zugschlus at costa.debian.org
Tue May 2 14:15:17 UTC 2006


Author: zugschlus
Date: 2006-05-02 14:15:16 +0000 (Tue, 02 May 2006)
New Revision: 888

Modified:
   nagios2/trunk/debian/changelog
   nagios2/trunk/debian/nagios2-common.nagios2.init
Log:
  * Create pid file directory dynamically in init script.
    Thanks to Herbert Straub. (mh) Closes: #361239



Modified: nagios2/trunk/debian/changelog
===================================================================
--- nagios2/trunk/debian/changelog	2006-05-02 13:34:10 UTC (rev 887)
+++ nagios2/trunk/debian/changelog	2006-05-02 14:15:16 UTC (rev 888)
@@ -5,8 +5,10 @@
     Thanks to Jim Jensen. (mh) Closes: #360778
   * Fix /usr/share/doc/nagios2/html symlink.
     Thanks to Matt Zagrabelny. (mh) Closes: #360998
+  * Create pid file directory dynamically in init script.
+    Thanks to Herbert Straub. (mh) Closes: #361239
 
- -- Marc Haber <mh+debian-packages at zugschlus.de>  Tue,  2 May 2006 13:13:11 +0000
+ -- Marc Haber <mh+debian-packages at zugschlus.de>  Tue,  2 May 2006 16:13:25 +0200
 
 nagios2 (2.2-1) unstable; urgency=low
 

Modified: nagios2/trunk/debian/nagios2-common.nagios2.init
===================================================================
--- nagios2/trunk/debian/nagios2-common.nagios2.init	2006-05-02 13:34:10 UTC (rev 887)
+++ nagios2/trunk/debian/nagios2-common.nagios2.init	2006-05-02 14:15:16 UTC (rev 888)
@@ -96,6 +96,11 @@
 [ "$PID" = '1' ] && unset PID
 
 start () {
+  # /var/run and /var/lock could be on a tmpfs
+  DIRECTORY=$(echo $THEPIDFILE | sed 's!/[^/]\+$!!')
+  [ ! -d $DIRECTORY ] && mkdir $DIRECTORY
+  chown nagios:nagios $DIRECTORY
+
   if ! check_started; then
     if ! check_named_pipe; then
       log_action_msg "named pipe exists - removing"




More information about the Pkg-nagios-changes mailing list