Package: nagios
Version: 2:1.4-
Severity: minor
Tags: patch

Hi!

It becomes increasingly popular to store /tmp, /var/run, and /var/lock
on a tmpfs. Unfortunately this breaks packages which expect a
persistent subdirectory there (this is a bit unclear in the LSB
specification).

Would you consider applying the attached patch, so that the directory
is guaranteed to be present? Thank you!

Martin
-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

In a world without walls and fences, who needs Windows and Gates?
diff -u nagios-1.4/debian/nagios-common.nagios.init 
nagios-1.4/debian/nagios-common.nagios.init
--- nagios-1.4/debian/nagios-common.nagios.init
+++ nagios-1.4/debian/nagios-common.nagios.init
@@ -21,6 +21,11 @@
 
 set -e
 
+if [ ! -d /var/run/nagios ]; then
+       mkdir /var/run/nagios
+       chown nagios:www-data /var/run/nagios
+fi
+
 #
 #      check_started()
 #

Attachment: signature.asc
Description: Digital signature

Reply via email to