Jump to content
  • Logrotate causes apcupsd to be restarted even if disabled in config.


    SimonF
    • Annoyance

    I had been playing with apcups and NUT to get my UPS reporting and I needed to use NUT. So I have disabled APCUPSD in the config as not needed.

     

    I am guessing that as there are log files these are being rotated weekly because one exists which restarts apcupsd and creates a new log so will continue like this until I reboot and logs purged from /var/log

     

    /var/log/apcupsd.events {
      rotate 4
      weekly
      notifempty
      missingok
      postrotate
        /etc/rc.d/rc.apcupsd restart 1>/dev/null || true
      endscript
    }

     

    But the restart is not checking the current status of the config. This may just be because I have log files. I have deleted them and will see if it re-occurs next week.




    User Feedback

    Recommended Comments

    Just experienced the same issue. Initially tried apcupsd - had some problems, already had NUT working on pre-unraid setup (migrated from synology), so turned off apcupsd and changed unraid to use NUT. But despite being disabled, apcupsd is restarting every day at 4.40am as part of 'logrotate'. On unraid 6.10.3.

    Link to comment

    I get this in my syslog every week.

    Jul 24 04:40:01 NAS apcupsd[118732]: apcupsd exiting, signal 15
    Jul 24 04:40:01 NAS apcupsd[118732]: apcupsd shutdown succeeded
    Jul 24 04:40:03 NAS apcupsd[71875]: apcupsd 3.14.14 (31 May 2016) slackware startup succeeded
    Jul 24 04:40:03 NAS apcupsd[71875]: NIS server startup succeeded
    

     

    Looking at /var/log, I see that apcupsd.events rolled over at 4:40 am at the same time.

    Edited by jbartlett
    Link to comment


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.

×
×
  • Create New...