Restarting devd

From: Warren Block <wblock_at_wonkity.com>
Date: Sat, 17 Oct 2009 17:05:07 -0600 (MDT)
Immediately after boot, devd restart fails:

# /etc/rc.d/devd restart
Stopping devd.
Starting devd.
devd: devd already running, pid: 398
/etc/rc.d/devd: WARNING: failed to start devd

And it's right, devd is not running.  Remove the stale pidfile 
/var/run/devd.pid, and '/etc/rc.d/devd start' goes fine.

In fact, after that initial pidfile is removed, restarts are no longer a 
problem:

# /etc/rc.d/devd restart
Stopping devd.
Starting devd.

So why is it a problem with the first run of devd, but not afterwards? 
Something with /etc/rc.d/devd, or maybe something more general with 
/etc/rc.subr?

FreeBSD lightning 8.0-RC1 FreeBSD 8.0-RC1 #6: Wed Oct 14 18:44:38 MDT 
2009     root_at_lightning:/usr/obj/usr/src/sys/LIGHTNING  i386

-Warren Block * Rapid City, South Dakota USA
Received on Sat Oct 17 2009 - 21:05:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:57 UTC