blob: a19a8d04de9dd859ef7c028fd2a75769402b0aba [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 "Reboot the system"
author "chromium-os-dev@chromium.org"
start on runlevel 6
stop on runlevel [!6]
# SHUTDOWN_REASON is passed to initctl by powerd_setuid_helper.
# Export it here so that the pre-shutdown job can log it.
export SHUTDOWN_REASON
exec chromeos_shutdown
post-stop exec reboot --force