diff options
author | 2013-01-04 15:19:33 -0600 | |
---|---|---|
committer | 2013-01-04 15:19:33 -0600 | |
commit | 26501ff94ed36a87f982267f2767508ddbd823c7 (patch) | |
tree | ccf4d9ba5d873e3dcd64e9c5cf0424db0684a43a | |
parent | udev: start /sbin/udevd if it exists (diff) | |
download | udev-gentoo-scripts-26501ff94ed36a87f982267f2767508ddbd823c7.tar.gz udev-gentoo-scripts-26501ff94ed36a87f982267f2767508ddbd823c7.tar.bz2 udev-gentoo-scripts-26501ff94ed36a87f982267f2767508ddbd823c7.zip |
udev: add a stop function
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.
-rw-r--r-- | init.d/udev | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/init.d/udev b/init.d/udev index 3dbc1a4..d61f1e2 100644 --- a/init.d/udev +++ b/init.d/udev @@ -187,6 +187,13 @@ start_post() return 0 } +stop() +{ + ebegin "Stopping ${name:-$RC_SVCNAME}" + udevadm control --exit + eend $? "Failed to stop $RC_SVCNAME" +} + reload() { ebegin "reloading udev rules and databases" |