Question : service restart after logrotate


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.


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 {
       /usr/local/apache/bin/apachectl graceful > /dev/null 2>/dev/null || true    --------------------- this line is for restart

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

Random Solutions  
programming4us programming4us