blob: bfde5f22d0ca69ce90fbcffa0858871cf9686218 [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "Halt (power down) the system"
author "chromium-os-dev@chromium.org"
start on runlevel 0
stop on runlevel [!0]
# SHUTDOWN_REASON is passed to initctl by powerd_setuid_helper.
# Export it here so that the pre-shutdown job can log it.
import SHUTDOWN_REASON
export SHUTDOWN_REASON
exec chromeos_shutdown
post-stop exec halt --force --poweroff