[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#288627: apache-ssl, logrotate.d file errors when reloads if apache is not running



Package: apache-ssl
Version: 1.3.26.1+1.48-0woody3

see: 288625
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=+288625

This will cause a problem on any box with apache-ssl installed but not
running, logrotate will error when it issues a reload for a not running
apache-ssl.


--- /root/logrotate.d.apache-ssl.orig	Sat Oct 26 08:30:34 2002
+++ /etc/logrotate.d/apache-ssl	Tue Jan  4 14:02:42 2005
@@ -8,6 +8,6 @@
 	create 640 root adm
 	sharedscripts
 	postrotate
-		/etc/init.d/apache-ssl reload > /dev/null
+		[ ! -f /var/run/apache-ssl.pid ] || /etc/init.d/apache-ssl reload > /dev/null
 	endscript
 }



// George

-- 
George Georgalis, systems architect, administrator Linux BSD IXOYE
http://galis.org/george/ cell:646-331-2027 mailto:george@galis.org



Reply to: