diff options
author | Mike Gilbert <floppym@gentoo.org> | 2015-06-13 18:48:43 -0400 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-06-13 21:44:53 -0500 |
commit | b34b2d9fcc5b39e202363d874fb3a3ead6526b0d (patch) | |
tree | 4e0a88e7f81dbcda47a0720f5f442a9cfc074c0d /init.d/udev | |
parent | start work on version 30 (diff) | |
download | udev-gentoo-scripts-b34b2d9fcc5b39e202363d874fb3a3ead6526b0d.tar.gz udev-gentoo-scripts-b34b2d9fcc5b39e202363d874fb3a3ead6526b0d.tar.bz2 udev-gentoo-scripts-b34b2d9fcc5b39e202363d874fb3a3ead6526b0d.zip |
udev: Start in daemon mode with stdin/stdout/stderr = /dev/null30
Starting in daemon mode prevents udev-trigger from running before
udevd has fully started. See bug 551928.
To prevent a regression on bug 547916, we use shell redirection
to redirect the standard file descriptors to /dev/null.
X-Gentoo-Bug: 551724
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=551724
Diffstat (limited to 'init.d/udev')
-rw-r--r-- | init.d/udev | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/init.d/udev b/init.d/udev index f26caa4..4b1147f 100644 --- a/init.d/udev +++ b/init.d/udev @@ -2,8 +2,7 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -command_args="${udev_opts}" -start_stop_daemon_args="--background" +command_args="--daemon ${udev_opts}" description="udev manages device permissions and symbolic links in /dev" extra_started_commands="reload" description_reload="Reload the udev rules and databases" @@ -61,10 +60,15 @@ start_pre() echo "" >/proc/sys/kernel/hotplug fi + local stderr=/dev/null + if yesno "${udev_debug:-NO}"; then - command_args="${command_args} --debug 2> /run/udevdebug.log" + command_args="${command_args} --debug" + stderr=/run/udevdebug.log fi + command_args="${command_args} < /dev/null > /dev/null 2> ${stderr}" + return 0 } |