Question : service restart after logrotate

Hello.

Every week when a log is rotated I have to restart a service . If I don`t restart the service then the new log file is not updated and stays empty !?

Can you help me out.

thx

Answer : service restart after logrotate

is this service is user defined ??


will you be able to check if in logroate.conf file, this service is set to restart example

when we configure apache by source, we need to add this line by our self in logrotate

/usr/local/apache/logs/*log {
   missingok
   notifempty
   sharedscripts
   postrotate
       /usr/local/apache/bin/apachectl graceful > /dev/null 2>/dev/null || true    --------------------- this line is for restart
endscript
}


so you need to make sure the service you saying, that is set to restart after logroate complete

Random Solutions  
 
programming4us programming4us