commit:     1801561c2d36c330df7fd02c7508f503a61ff5ba
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Fri Jun  2 23:21:53 2017 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Jun  5 16:52:50 2017 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=1801561c

init.d/bootmisc: use openrc-shutdown instead of halt to write halt record

This fixes #139 and fixes #128.
and fixes #124.

 init.d/bootmisc.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in
index 40d3c933..bf79f03d 100644
--- a/init.d/bootmisc.in
+++ b/init.d/bootmisc.in
@@ -241,7 +241,7 @@ stop()
 {
        # Write a halt record if we're shutting down
        if [ "$RC_RUNLEVEL" = shutdown ]; then
-               [ "$RC_UNAME" = Linux ] && halt -w
+               [ "$RC_UNAME" = Linux ] && openrc-shutdown -w
                if [ "$RC_SYS" = OPENVZ ]; then
                        yesno $RC_REBOOT && printf "" >/reboot
                fi

Reply via email to