summaryrefslogtreecommitdiff
path: root/init.d
Commit message (Collapse)AuthorAgeFilesLines
* udev: unlink control socket after stopping udevdMike Gilbert2021-08-291-2/+2
| | | | | | Closes: https://bugs.gentoo.org/810928 Signed-off-by: Mike Gilbert <floppym@gentoo.org> Signed-off-by: William Hubbs <williamh@gentoo.org>
* fix --debug optionWilliam Hubbs2021-05-241-1/+2
| | | | | | | Thanks to nissarin@gmail.com for the patch Closes: https://bugs.gentoo.org/751973 Signed-off-by: William Hubbs <williamh@gentoo.org>
* use -containers keyword to cover all containersWilliam Hubbs2021-05-223-3/+3
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* udev-settle: fix timeout argument quotingKaarle Ritvanen2020-08-051-1/+1
| | | | | | empty value resulted in "Extraneous argument" error Signed-off-by: William Hubbs <williamh@gentoo.org>
* Allow udevd to be a symlinkMike Gilbert2020-08-051-1/+1
| | | | | | | | As of systemd-246, systemd-udevd is a symlink to udevadm. Bug: https://bugs.gentoo.org/734950 Reverts: b165050513894b3d600e8302bd68c7ba553fbb04 Signed-off-by: William Hubbs <williamh@gentoo.org>
* init.d/udev: remove the RC variable from the stop functionWilliam Hubbs2019-11-301-12/+5
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* init.d: style fixesWilliam Hubbs2019-11-303-30/+21
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* Do not use the --daemon option in the udev service script33William Hubbs2019-02-201-3/+5
| | | | | | | | Using this option does not allow OpenRC to show the status correctly since udevd doesn't write a pid file. We need to create the pidfile ourselves. Signed-off-by: William Hubbs <williamh@gentoo.org>
* udev-trigger: allow failure if udevadm exits with non-zero status32William Hubbs2016-11-101-2/+2
|
* init.d/udev-settle: typo fixWilliam Hubbs2016-11-101-1/+1
|
* udev-settle: use udevadm settle default timeout of 120 secondsWilliam Hubbs2016-11-091-1/+2
|
* init.d/udev-settle: allow service to fail if udevadm failsWilliam Hubbs2016-11-091-1/+0
|
* udev-settle: fix indentation31William Hubbs2016-06-011-3/+3
|
* fix shebang line in udev service scriptWilliam Hubbs2016-05-261-1/+1
|
* udev: make bins variable localWilliam Hubbs2015-09-101-1/+1
|
* udev: create a function to locate the binaryLars Wendler2015-09-101-11/+16
|
* fix indentationLars Wendler2015-09-031-3/+3
|
* udev: Remove workaround for redirecting stdio to /dev/nullMike Gilbert2015-06-171-6/+1
| | | | systemd-udevd was fixed upstream, making this hack unnecessary.
* udev: Start in daemon mode with stdin/stdout/stderr = /dev/null30Mike Gilbert2015-06-131-3/+7
| | | | | | | | | | | 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
* udev-trigger: Fix typos and make all functions return success29William Hubbs2015-06-101-1/+5
| | | | | X-Gentoo-Bug: 551644 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=551644
* udev-trigger: always return success28William Hubbs2015-06-011-0/+1
| | | | | This is how earlier versions of the scripts behaved, so we should not break expectations.
* udev-settle: always return successWilliam Hubbs2015-06-011-0/+1
| | | | | This is how earlier versions of the scripts behave, so we should not break expectations.
* Disable the scripts in a systemd-nspawn containerWilliam Hubbs2015-05-023-5/+3
| | | | | X-Gentoo-Bug: 548090 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=548090
* Make start-stop-daemon daemonize instead of udevWilliam Hubbs2015-04-291-1/+2
| | | | | | | | This is needed since udev does not close std{in,out,err} if the --daemon function is used, which leaves the terminal open forever. X-Gentoo-Bug: 547916 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=547916
* add provide for dev-settleWilliam Hubbs2014-12-031-0/+1
|
* split the udev serviceWilliam Hubbs2014-11-253-92/+108
| | | | | | | | | The udev service now has been split into three services: udev starts the daemon, udev-trigger populates /dev and udev-settle waits for all udev events to time out. udev and udev-trigger will be needed in the sysinit runlevel; however, udev-settle will not on most systems.
* move default for udev_monitor to the yesno callsWilliam Hubbs2014-11-031-3/+2
|
* remove udev-mount service script27William Hubbs2014-08-082-90/+27
| | | | | | OpenRC 0.13 and newer will mount /dev correctly,. The tests to make sure devtmpfs is in the kernel and /dev is a mounted devtmpfs have been moved to start_pre in the udev service script.
* This code is now inside net.sh since netifrc 0.2.2, see Gentoo bug 503530Samuli Suominen2014-03-071-27/+0
|
* Move code from dev-root-link helper to udev init scriptWilliam Hubbs2013-12-301-1/+18
| | | | | | | | This code should only be run by the udev init script, so let's put it inside the script instead of making it a helper. X-Gentoo-Bug: 495086 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=495086
* Add net devices when coldplugging is disabled26Lars Wendler2013-04-151-0/+1
| | | | | | | | This allows the predictable interface names to work when coldplugging is disabled. X-Gentoo-Bug: 465248 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=465248
* Fix the path for udevadmSamuli Suominen2013-04-031-2/+2
| | | | | | | We should run /bin/udevadm directly instead of using a symbolic link. X-Gentoo-Bug: 464190 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=464190
* small wording change in the message about the /dev/root symlinkWilliam Hubbs2013-03-211-1/+1
|
* remove extra information about /dev/rootWilliam Hubbs2013-03-211-4/+0
| | | | | This is not really needed in the output of the init script since it is covered in the conf.d file and helper script.
* Optionally create /dev/root symlinkWilliam Hubbs2013-03-211-0/+10
| | | | | | | | | | | | This is being added because there is software in our tree which hard codes the reference to /dev/root instead of using stat("/") to retrieve the root device. It is temporary however and will be removed again once this software is fixed. This is based on a patch submitted by Samuli Ssuominen. X-Gentoo-Bug: 438380 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=438380
* re-arrange variable settingsWilliam Hubbs2013-03-191-11/+6
| | | | | | | | | Move the settings for udevmonitor_pid and udevmonitor_log to global scope since they are used in two functions. Also, we do not need to set the rc_coldplug, udev_debug, udev_monitor_keep_running and udev_settle_timeout to their default values in global scope; we can just use the default values when we refer to the variables.
* udev: fix permissions and symlinks when rc_coldplug="no"Lars Wendler2013-03-191-0/+2
| | | | | | | | Modification by William Hubbs: I added an einfo to inform users that symbolic links and permissions are being set. X-Gentoo-Bug: 461838 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=461838
* udev: skip "udevadm trigger" calls if coldplug sequence is not requestedWilliam Hubbs2013-02-271-8/+5
| | | | | | Reported-by: matthew4196@gmail.com X-Gentoo-Bug: 424189 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=424189
* init.d/udev: remove kernel version checks23William Hubbs2013-02-041-46/+0
| | | | | | | | Udev does not actively block people from attempting to run on older versions of the kernel, so we shouldn't either. X-Gentoo-Bug: 454324 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=454324
* bump kernel version requirement22William Hubbs2013-01-271-1/+1
| | | | | | | Modern udev requires at least kernel 2.6.39, so adjust the version in this script. https://bugs.gentoo.org/show_bug.cgi?id=454324
* move disable_oldnet_hotplug above start_preWilliam Hubbs2013-01-271-13/+13
| | | | | This function is used in start_pre, so move it to reflect that. Code is easier to follow if it is defined before it is used.
* Fix population of /run/udev/rules.d for newnetMike Gilbert2013-01-271-2/+7
| | | | | | | | * Create /run/udev/rules.d before dropping files in place. * Move disable_oldnet_hotplug to start_pre so that it is done before starting the daemon http://bugs.gentoo.org/453656
* Add code to stop udevd if udevadm control --exit fails21William Hubbs2013-01-211-1/+9
| | | | Thanks to Nikoli for pointing this out.
* udev: only run the executable20William Hubbs2013-01-211-1/+1
| | | | Thanks to Samuli Suominen for catching this.
* udev: return error if unable to find executableWilliam Hubbs2013-01-081-2/+3
|
* udev: start udev from /lib/systemd if it exists there.William Hubbs2013-01-081-4/+8
|
* update copyright noticesWilliam Hubbs2013-01-042-2/+2
|
* udev: fail if unable to load the socket moduleWilliam Hubbs2013-01-041-0/+1
|
* udev: move the code to search for the binary to start_preWilliam Hubbs2013-01-041-6/+7
| | | | | This does not need to be in global scope since the only place the command variable is used is the start function.
* udev: add a stop functionWilliam Hubbs2013-01-041-0/+7
| | | | | | The udev init script should use "udevadm control --exit" as the way to stop udev, so this adds a custom stop function. Thanks to Mike Gilbert <floppym@gentoo.org> for pointing this out.