blob: 736e19cb28807668dd8481737c92d3e1cff4d77b [file] [log] [blame] [edit]
# Copyright 2012 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "Start the udev daemon"
author "chromium-os-dev@chromium.org"
oom score never
# Start udev alongside chromeos_startup, since it only needs to
# write to /run and does very little else itself other than set
# up a few static nodes. The general "trigger"s for devices are in
# udev-trigger-* jobs.
start on stopped pre-startup
respawn
# udevd uses systemd's "auto", which seems to prefer journald or console. We
# want syslog (or kmsg, if necessary).
env SYSTEMD_LOG_TARGET=syslog-or-kmsg
# Create static device nodes from modules.devname.
# This needs to complete before udev itself because udev's static_node rules
# expect the nodes to already exist so it can chown/chgrp them.
pre-start exec static_node_tool
expect fork
exec udevd --daemon