Replace logrotate conf with templates

tags/0.0.1_0.fc26_el5
Daniel Berteaud 7 years ago
parent 986e7b9ea7
commit 198231fb45
  1. 3
      createlinks
  2. 12
      root/etc/e-smith/templates/etc/logrotate.d/php-fpm/php-fpm
  3. 12
      root/etc/logrotate.d/smeserver-php-fpm

@ -33,7 +33,8 @@ safe_symlink('/etc/e-smith/templates-default/template-begin-shell', 'root/etc/e-
foreach my $file qw( /etc/sysconfig/php-fpm
/opt/remi/php56/root/etc/sysconfig/php-fpm
/etc/opt/remi/php70/sysconfig/php-fpm
/etc/opt/remi/php71/sysconfig/php-fpm ){
/etc/opt/remi/php71/sysconfig/php-fpm
/etc/logrotate.d/php-fpm ){
templates2events($file, qw(webapps-update bootstrap-console-save));
}

@ -0,0 +1,12 @@
/var/log/php/*/*.log \{
missingok
notifempty
sharedscripts
delaycompress
postrotate
/sbin/e-smith/service php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php56-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php70-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php71-php-fpm reload >/dev/null 2>&1 || true
endscript
\}

@ -1,12 +0,0 @@
/var/log/php/*/*.log {
missingok
notifempty
sharedscripts
delaycompress
postrotate
/sbin/e-smith/service php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php56-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php70-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php71-php-fpm reload >/dev/null 2>&1 || true
endscript
}
Loading…
Cancel
Save