Changes

From SME Server
Jump to navigationJump to search
76 bytes added ,  22:57, 12 June 2017
Line 97: Line 97:     
add this
 
add this
if $programname == 'grandstream' then                /var/log/grandstream/grandstream.log
+
if $programname == 'grandstream' then                /var/log/grandstream/grandstream.log
& stop
+
& stop
 +
then
 +
 
 +
mkdir /var/log/grandstream
 +
touch /var/log/grandstream/grandstream.log
 +
expand-template /etc/sysconfig/rsyslog
 +
service rsyslog restart
 +
 
 +
 
    
also rotate it
 
also rotate it
 
  vim /etc/logrotate.d/grandstream
 
  vim /etc/logrotate.d/grandstream
   −
/var/log/grandstream/*.log {
+
/var/log/grandstream/*.log {
 
     weekly
 
     weekly
 
     rotate 5
 
     rotate 5
Line 112: Line 120:  
     sharedscripts
 
     sharedscripts
 
     endscript
 
     endscript
}
+
}
 
  −
 
  −
then
  −
 
     −
expand-template /etc/sysconfig/rsyslog
  −
service rsyslog restart
       
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,263

edits

Navigation menu