From 7ce7a6065ba9b3474f7aca57ad106a8f2c828a51 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 1 Aug 2016 14:57:24 +0300 Subject: [PATCH] store fpm logs to /var/log/archive/php --- php-fpm.logrotate | 1 + php.spec | 1 + 2 files changed, 2 insertions(+) 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 diff --git a/php.spec b/php.spec index 741fcaf..9de6ac7 100644 --- a/php.spec +++ b/php.spec @@ -505,6 +505,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(fpm) Provides: user(http) -- 2.43.0