Results 1 to 2 of 2

Thread: powernap on ubuntu 15.10

  1. #1
    Join Date
    Nov 2015
    Beans
    1

    Cool powernap on ubuntu 15.10

    it acceptable for
    powernap 2.21-0ubuntu1
    when service not start

    FIX #1

    You can find possible error in /var/log/powernap.err like
    Code:
    ValueError: invalid literal for int () with base 10.
    it is due to changes in /proc/interrupts format file
    resolved as duplicate row in python file /usr/lib/python2.7/dist-packages/powernap/monitors/ConsoleMonitor.py row #40
    change
    Code:
    items.pop()
    to (remember about indents - its must be same - dont use tabs - just duplicate)
    Code:
    items.pop()
    items.pop()
    FIX #2

    when You start service ang get error
    Code:
    Failed to start powernap.service: Unit network.service failed to load: No such file or directory
    I change some lines in /lib/systemd/system/powernap.service
    Code:
    Requires=network.service
    After=network.service
    to
    Code:
    Requires=networking.service
    After=networking.service
    And add to service section - its need for forking type of service
    Code:
    RemainAfterExit=yes
    FIX #3

    as default package installed with no autostart at boot of system
    to enable autostart You need remove file
    /etc/init/powernap.override
    and run systemctl enable powernap


    Tnx!
    Last edited by akajes; December 7th, 2015 at 06:28 PM.

  2. #2
    Join Date
    Jun 2016
    Beans
    1

    Re: powernap on ubuntu 15.10

    Thank you for the fixes. I had to apply all of the to get powernap to work in 16.04.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •