udev: update init scripts

master
artoo 5 months ago
parent 08a2c1c39d
commit fa10bfd09a
  1. 9
      udev/init.d/udev
  2. 2
      udev/init.d/udev-settle
  3. 2
      udev/init.d/udev-trigger

@ -12,7 +12,7 @@ description_reload="Reload the udev rules and databases"
depend() {
need sysfs dev-mount
before checkfs fsck
keyword -lxc -systemd-nspawn -vserver
keyword -containers
}
get_udevd_binary() {
@ -66,7 +66,8 @@ start_pre() {
fi
if yesno "${udev_debug:-NO}"; then
command_args="${command_args} --debug 2> /run/udevdebug.log"
command_args="${command_args} --debug"
error_log="/run/udevdebug.log"
fi
return 0
@ -76,9 +77,9 @@ stop() {
get_udevd_binary || return 1
ebegin "Stopping ${name:-$RC_SVCNAME}"
udevadm control --exit ||
start-stop-daemon --stop --exec "${command}" --pidfile "${pidfile}" &&
rm -f "${pidfile}"
start-stop-daemon --stop --exec "${command}" --pidfile "${pidfile}"
eend $? "Failed to stop $RC_SVCNAME"
[ $? -eq 0 ] && rm -f "${pidfile}" /run/udev/control
}
reload() {

@ -6,7 +6,7 @@ depend() {
need udev
after udev-trigger
provide dev-settle
keyword -lxc -systemd-nspawn -vserver
keyword -containers
}
start() {

@ -10,7 +10,7 @@ udevmonitor_pid=/run/udevmonitor.pid
depend() {
need udev
provide dev
keyword -lxc -systemd-nspawn -vserver
keyword -containers
}
start_pre() {

Loading…
Cancel
Save