[packages/php/PHP_5_6] store fpm logs to /var/log/archive/php

glen glen at pld-linux.org
Mon Aug 1 13:59:00 CEST 2016


commit 60dd4ed4b815c959d60e029fd715dd7c22c3710e
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Aug 1 14:57:24 2016 +0300

    store fpm logs to /var/log/archive/php

 php-fpm.logrotate | 1 +
 php.spec          | 1 +
 2 files changed, 2 insertions(+)
---
diff --git a/php.spec b/php.spec
index 3b08a93..6c19f86 100644
--- a/php.spec
+++ b/php.spec
@@ -521,6 +521,7 @@ Requires(postun):	/usr/sbin/userdel
 Requires(pre):	/bin/id
 Requires(pre):	/usr/sbin/useradd
 Requires:	%{name}-common = %{epoch}:%{version}-%{release}
+Requires:	php-dirs >= 1.4-2
 Requires:	rc-scripts
 Provides:	php(fcgi)
 Provides:	php(fpm)
diff --git a/php-fpm.logrotate b/php-fpm.logrotate
index 3e4c230..f6d1c52 100644
--- a/php-fpm.logrotate
+++ b/php-fpm.logrotate
@@ -4,6 +4,7 @@
 	notifempty
 	missingok
 	create 600 root root
+	olddir /var/log/archive/php
 	sharedscripts
 	postrotate
 		/sbin/service @processname@ flush-logs > /dev/null
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/60dd4ed4b815c959d60e029fd715dd7c22c3710e



More information about the pld-cvs-commit mailing list