aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2017-06-02 18:21:53 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2017-06-05 16:52:50 +0000
commit1801561c2d36c330df7fd02c7508f503a61ff5ba (patch)
tree01a5e487b85197be35a20563672cdc43adf18d9c
parent7689106aa10f7852b707b4c21ec080ccb2767280 (diff)
init.d/bootmisc: use openrc-shutdown instead of halt to write halt record
This fixes #139 and fixes #128. and fixes #124.
-rw-r--r--init.d/bootmisc.in2
1 files changed, 1 insertions, 1 deletions
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