This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Logrotate for Sentora (Centos 6&7 Ubuntu & Debian)
#5
RE: Logrotate for Sentora Centos 7
(02-24-2016, 10:13 AM)barreiras Wrote: I just made some ajustments for ubuntu on the sentora-apache it was just needed to replace  the postrotate for adapting to ubuntu's service

Code:
/var/sentora/logs/domains/*/*access.log /var/sentora/logs/domains/*/*error.log /var/sentora/logs/zpanel.log /var/sentora/logs/sentora*.log /var/sentora/logs/daemon*.log {
      weekly
      missingok
      rotate 5
      compress
      delaycompress
      create 640 root adm
      sharedscripts
      postrotate
             service apache2 reload > /dev/null
      endscript
      prerotate
              if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
                      run-parts /etc/logrotate.d/httpd-prerotate; \
              fi; \
      endscript
}

For Debain and Ubuntu also look into the create line, they may use other permissions.
[Image: logo2.png]

My being on this forum is all personal and all is done here by me has nothing to with the company Web Improved I work for Smile
Reply
Thanks given by:


Messages In This Thread
RE: Logrotate for Sentora Centos 7 - by barreiras - 02-24-2016, 01:44 AM
RE: Logrotate for Sentora Centos 7 - by Me.B - 02-24-2016, 02:23 AM
RE: Logrotate for Sentora Centos 7 - by barreiras - 02-24-2016, 10:13 AM
RE: Logrotate for Sentora Centos 7 - by bbspike - 02-24-2016, 09:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Secure Sentora Domains with Let's Encrypt TGates 27 97 ,209 06-08-2024, 05:06 PM
Last Post: andykimpe
Upgrade to Ubuntu 16.04 from 14.04 HogensHero 8 30 ,332 07-18-2020, 03:13 AM
Last Post: dycott78
Ubuntu: How to Enable tls/ssl in proftpd Diablo925 2 12 ,836 04-21-2020, 03:35 AM
Last Post: iraqiboy90

Forum Jump:


Users browsing this thread: 1 Guest(s)