paddyg
October 23rd, 2005, 08:22 AM
Have you noticed an unclean stopping for hald when shutting down your system?
Here's the message on screen:
Stopping Hardware Abstract Layer:
/etc/dbus-1/event.d/20hal: line 49: /var/run/hal/hald.pid: no such file or directory
Kill usage......
But there is an OK in the end all the same, as if hald stopped anyhow.
Here are the lines in 20hal that cause the message:
if [ -e $PIDFILE ]; then
kill -9 $(< $PIDFILE) || true
rm -f $PIDFILE
fi
So, my guess is hald stops correctly and then the block is evaluated. But i wonder why the THEN part is evaluated if there is no pid!
I commented the block and the message has vanished.
Now, why those lines? are they really necessary? No such block in Hoary, and it worked great all the same. Am i missing something?
Here's the message on screen:
Stopping Hardware Abstract Layer:
/etc/dbus-1/event.d/20hal: line 49: /var/run/hal/hald.pid: no such file or directory
Kill usage......
But there is an OK in the end all the same, as if hald stopped anyhow.
Here are the lines in 20hal that cause the message:
if [ -e $PIDFILE ]; then
kill -9 $(< $PIDFILE) || true
rm -f $PIDFILE
fi
So, my guess is hald stops correctly and then the block is evaluated. But i wonder why the THEN part is evaluated if there is no pid!
I commented the block and the message has vanished.
Now, why those lines? are they really necessary? No such block in Hoary, and it worked great all the same. Am i missing something?