...
| Bloc de code | ||||
|---|---|---|---|---|
| ||||
/usr/local/django_projects/podv3/pod/log/*.log {
su pod nginxwww-data
daily
missingok
rotate 14
nocompress
delaycompress
notifempty
create 0640 pod nginxwww-data
sharedscripts
postrotate
systemctl restart uwsgi-pod >/dev/null 2>&1
endscript
}
|
Puis lancez la commande suivante pour vérifier que ca fonctionne :
sudo logrotate -d /etc/logrotate.d/esup-pod