[Pkg-sysvinit-devel] Bug#444980: udev not restarted after exiting runlevel 1

Petter Reinholdtsen pere at hungry.com
Mon Aug 31 06:11:31 UTC 2009


[Marco d'Itri]
> The only files udev keeps open are on /dev, and it's almost
> impossible to unmount it anyway. I am not aware of other daemons
> which should run in single user mode.

What is the working directory of the udev process?  I hope it is
/dev/, to avoid issues with / if something need to be done to the root
file system.

If udev indeed should run in single user mode and runlevel 1, we
should try to find a way to make that happen.

> Since without udev /dev will not stay in sync with reality I think
> it is reasonable to believe that it is a fundamental system
> component which should be active even in single user mode.  I also
> argue that it should not even be stopped, because then events may be
> lost.

Right.

Is there a pid file around, to make sure the correct process and not
just any process named udev is available?  Could you create one?  Why
did you propose to use pgrep instead of pidof, btw?  'pidof
/sbin/udevd' sime like a safer alternative, as it check the process
inode info to make sure the correct process is found.

BTW, if udevd should survive runlevel 1 (which is not the same as
single user), there need to be start symlink in rc1.d/.

Happy hacking,
-- 
Petter Reinholdtsen



More information about the Pkg-sysvinit-devel mailing list