#221 Sceduled shutdown/poweroff doesn´t work

v0.685b
closed
Volker
Others (142)
5
2012-10-28
2007-07-19
reifra26
No

The Sceduled Poweroff does not work!
I found a Change in the Sript /etc/rc.shutdown

In Version 0.684b was called at last line the Script /etc/rc.systemhalt - it shutdown the machine
with the call of the last line "system_halt();"

!/usr/local/bin/php -f

<?php
require_once("globals.inc");
require_once("functions.inc");
require_once("util.inc");

// Start the shutdown
system_halt();
?>

In the Version 0.685b1a in the script /etc/rc.shutdown in the last line the script /etc/rc.shutdown.common
was started - the machine doesn´t poweroff.
There is a change in the last line of the script "system_stop_common();"

!/usr/local/bin/php -f

<?php
require_once("globals.inc");
require_once("functions.inc");
require_once("util.inc");

system_stop_common();
?>

when I change "system_stop_common();" in system_halt(); the poweroff of the machine is working

Sorry for my bad english...

Discussion

  • Volker
    Volker
    2007-07-20

    Logged In: YES
    user_id=1598685
    Originator: NO

    Hi,

    when does the power off does not work? If you press the Power off button on your PC or my choosing menu 8) on the console menu?

    Greetings
    Volker

     
  • VH-RQQ
    VH-RQQ
    2007-07-20

    Logged In: YES
    user_id=1784419
    Originator: NO

    Sceduled shutdown/poweroff ONLY doesn´t work.
    Let's say I schedule shutdown at 2200 every month/day...... nothing happens

    Power off manually or menu than 8 works fine.
    Regards
    Nenad

     
  • reifra26
    reifra26
    2007-07-20

    Logged In: YES
    user_id=1848218
    Originator: YES

    In my NAS the menuitem 8 works. When i gave in a sceduled poweroff on the webinterface and the cron starts
    the script rc.shutdown wich later starts the script rc.shutdown.common, the system doesn´t poweroff.
    Only some processes where stopped. After the Change in the Script of last line "system_stop_common();" to "system_halt();" the poeroff works perfect. To the manually poweroff in the moment i can´t give a answer. I can test it next sunday - so long...

     
  • Volker
    Volker
    2007-07-23

    Logged In: YES
    user_id=1598685
    Originator: NO

    Bug has been fixed in 0.685b2 and 0.686b. A new nightly build (0.686b) will be available within a hour.

    Greetings
    Volker