User Tools

Site Tools


linux:apachelogs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:apachelogs [2020/08/05 00:28] Wulf Rajeklinux:apachelogs [2023/05/29 11:55] (current) – external edit 127.0.0.1
Line 34: Line 34:
    
 to apache logrotate in the prerotate section, ensuring the lines all terminate with backslash to apache logrotate in the prerotate section, ensuring the lines all terminate with backslash
-<code>+<code - /etc/logrotate.d/apache2>
     prerotate     prerotate
         if [ -f /root/phperrors.sh ]; then \         if [ -f /root/phperrors.sh ]; then \
-            /root/phperrors.sh \+            /root/phperrors.sh >/dev/null; \
         fi; \         fi; \
         ...other-prerotate-commands...         ...other-prerotate-commands...
     endscript     endscript
 </code> </code>
linux/apachelogs.1596583705.txt.gz · Last modified: 2023/05/29 11:53 (external edit)