blob: 44798a13f46ae731af9e13a61f2bbfa30611e098 [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.
import SHUTDOWN_REASON
export SHUTDOWN_REASON
exec chromeos_shutdown
post-stop exec reboot --force