<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 15, 2014 at 5:10 AM, Chen Qi <span dir="ltr"><<a href="mailto:Qi.Chen@windriver.com" target="_blank">Qi.Chen@windriver.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Use 'poweroff' instead of 'halt' for the Exec field in the shutdown.desktop.<br>
<br>
The purpose of this patch is to make the 'shutdown' icon on on our sato<br>
images work as expected for both sysvinit and systemd images. Previously,<br>
the Exec field was 'halt'. The `halt' command could poweroff the system<br>
in sysvinit images but it only could halt the system in systemd images.<br>
The difference is due to the different implementations of the `halt' command.<br>
<br>
In sysvinit, the `halt' command will effective execute `/sbin/init 0'. This<br>
is for the compatibility with sysvinit 2.4, as stated in the comments of the<br>
source code. In systemd, the `halt' command will effectively execute the<br>
reboot(RB_HATL_SYSTEM).<br>
<br>
As the 'shutdown' icon is expected to actually shutdown the system, we should<br>
use poweroff instead of halt for its Exec field.<br>
<br>
[YOCTO #4347]<br>
<br>
Signed-off-by: Chen Qi <<a href="mailto:Qi.Chen@windriver.com">Qi.Chen@windriver.com</a>><br></blockquote><div><br></div><div>Reviewed-by: Otavio Salvador <<a href="mailto:otavio@ossystems.com.br">otavio@ossystems.com.br</a>></div>
</div><div><br></div>-- <br>Otavio Salvador O.S. Systems<br><a href="http://www.ossystems.com.br" target="_blank">http://www.ossystems.com.br</a> <a href="http://code.ossystems.com.br" target="_blank">http://code.ossystems.com.br</a><br>
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750<br>
</div></div>