Missing /dev/xconsole causes rsyslog to stop as well as all other services
Posted
by
George Van Tuyl
on Ask Ubuntu
See other posts from Ask Ubuntu
or by George Van Tuyl
Published on 2012-02-29T19:51:12Z
Indexed on
2012/09/15
15:48 UTC
Read the original article
Hit count: 411
We are running Ubuntu-10.04.04LTS in Hyper-V environments. We found that the services ssh http or anything else stopped because the rsyslog daemon had died with the message unable to find the /dev/xconsole file.
I fixed it temporarily with the following.
FILE=/dev/xconsole
if [ -e $FILE ]; then
echo "$FILE exists Carry on!"
else
mknod -m 640 /dev/xconsole c 1 3
chown syslog:adm /dev/xconsole
echo "Created $FILE."
fi
The problem is that I can not get rsyslog daemon to process these 8 lines when I restart the daemon.
Also restarting the daemon removes the /dev/xconsole file and we are back to all service stopped. In addressing this problem I have inserted the if--fi lines after the start and restart conditions in the rsyslog script. The problem is I do not get an echo to stdio. Does someone have an idea on how to make the rsyslog report to stdio when it creates the /dev/xconsole device.
Thanks
George Van Tuyl
© Ask Ubuntu or respective owner