rtcwake and date

  • Hi,


    I'm relatively new at using openmediavault. I configured the autoshutdown plugin to go to suspend to ram (hibernate seems not to work) if a list of configured ip is not reachable. So far so good.


    Now I'm trying to use rtcwake to wake the system up at 7:00 o'clock in the morning. I configured rtcwake as a crontab entry:


    Code
    rtcwake -m no -l -t $(date +%s -d 'tomorrow 07:00')


    If I execute the command on the shell I get the following:


    Code
    root@openmediavault:~# date
    Sa 6. Feb 13:10:23 CET 2016


    Local timezone

    Code
    root@openmediavault:~# rtcwake -m no -l -t $(date +%s -d 'tomorrow 07:00')
    rtcwake: wakeup using /dev/rtc0 at Sun Feb  7 08:00:23 2016


    :?: Why its printing 8:00 o'clock?


    UTC time

    Code
    root@openmediavault:~# rtcwake -m no -u -t $(date +%s -d 'tomorrow 07:00')
    rtcwake: wakeup using /dev/rtc0 at Sun Feb  7 06:00:23 2016


    :?: Why its printing 6:00 o'clock?


    :?: Why none of the commands prints me 7:00 o'clock? Whats wrong?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!