Changes

From SME Server
Jump to navigationJump to search
374 bytes added ,  08:07, 12 December 2017
logrotate
Line 79: Line 79:  
  popd
 
  popd
   −
logrotate :
+
logrotate :<syntaxhighlight lang="bash">
 +
cat  > /etc/logrotate.d/mwlib <<- EOM
 +
 
 +
/var/log/mediawiki/mw-serve_log.txt
 +
{
 +
        compress
 +
        weekly
 +
        rotate 4
 +
        maxsize 5M
 +
        dateext
 +
        dateformat -%Y%m%d%H%M%S
 +
        missingok
 +
        postrotate
 +
                /etc/init.d/mw-serve restart
 +
        endscript
 +
 
 +
 
 +
 
 +
}
 +
 
 +
EOM
 +
</syntaxhighlight>/etc/logrotate.d/mwlib
    
===Sources===
 
===Sources===
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,240

edits

Navigation menu