OES2018-SP3 Apache Web server restarts at midnight

Good day, 

I have been working on another project, as a part of that I was noticing that on pretty much every OES2018-SP3 server that I was looking at, the process seems to be stopping and restarting at midnight. I was just wondering if this is something that is programmed into the webserver, as this seems to be standard across the board, it is consistently uniform, in that I can see it stopping at or around midnight then starts back up again, but when I look to see how long it's been up and running, "systemctl status apache2.service" it appears to have been running for ex: for nearly 3 weeks. So I was a little confused, and wondering if anyone else has seen this behavior?

Thank you, 

-DS 

  • 0  

    Maybe logrotate rotating apache logs at midnight?

    Kind regards,

    Sebastijan

    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button

  • 0  

    Unfortunately I don't have an OES 2018 SP3 at hand, the default entries in the crontab are for OES 24.2:

    crontab -l for root
    */30 * * * * /usr/sbin/logrotate /etc/logrotate.d/oes-dashboard-agent > /dev/null 2>&1
    */30 * * * * /usr/sbin/logrotate /etc/logrotate.d/oes-core-agent > /dev/null 2>&1
    */30 * * * * /usr/sbin/logrotate /etc/logrotate.d/oes-telemetry-agent > /dev/null 2>&1
    */30 * * * * /usr/sbin/logrotate /etc/logrotate.d/oes-telemetry-server > /dev/null 2>&1
    0 0 15 * * /opt/novell/proxymgmt/bin/change_proxy_pwd.sh -A yes
    */30 * * * * /usr/sbin/logrotate /etc/logrotate.d/oes-cis-agent > /dev/null 2>&1
    */30 * * * *  /usr/sbin/logrotate /etc/logrotate.d/oes-cis-scanner > /dev/null 2>&1
    */30 * * * * /usr/sbin/logrotate /etc/logrotate.d/oes-cis-recall-agent > /dev/null 2>&1

    no entrys for other users

    What do you see in the crontab of the systems on which the observation was made?

    what says for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; on the above systems?

    “You can't teach a person anything, you can only help them to discover it within themselves.” Galileo Galilei

  • 0   in reply to   

    Good morning, 

    That actually makes sense, that it could be simply a rotation of the log, I didn't actually think about that. Yes it is at or around midnight each night. 

  • 0   in reply to   

    Good morning, 

    There are matching entries on the OES 2018SP3 servers, none look they relate to  Apache, but that prior message above seems to be a good explanation as well,  they do basic checks for eDirectory process, along with trustee assignments and a space report nothing that appears to relate to Apache 

    But again I appreciate your providing another place for me to look. 

  • Suggested Answer

    0   in reply to   

    /etc/logrotate.d/apache2

    so it is a part of the normal log rotate process, and if you have enough activity that they need to rotate every day, then there is you answer.

    ________________________

    Andy of KonecnyConsulting.ca in Toronto
    Please use the "Like" and/or "Verified Answers" as appropriate as that helps us all.