Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-25-2007, 02:25 PM
|
#1
|
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019
Rep:
|
can't open or create /var/run/klogd.pid failed
I recently moved my tmp and var directories from under / to a shared partition of their own. All went well at first sight, but now I'm having this error message while booting:
<notice>boot.klog start
Creating /var/log/boot.msg
Can't open or create /var/run/klogd.pid.
failed
<notice>killproc: kill(738,29)
<notice>'boot.klog start' exits with status 0
It's taking longer for the system to boot into Gnome or KDE, by the way (it really flew before, now it's taking about thirty seconds).
I checked /var/run and noticed that there effectively wasn't any such file. I manually created one, just to see what would happen, but it had disappeared again the next time I booted.
Then I tried setting /var/run to 770 in single-user mode. After another reboot, I got the same error message even though this time the file was duly created by the system. Also, the permissions on /var/log were back at 644.
Right now, the system is once more failing to put klogd.pid in /var/run.
Am I right to assume that this is essentially a matter of correct permissions? If so, how could I make them stick? And if not, would there be any other solution?
|
|
|
02-26-2007, 05:53 AM
|
#2
|
Senior Member
Registered: Mar 2006
Posts: 1,896
Rep:
|
I don't know if I can help you, but for me -- or anybody else -- to help you, you might want to to post some more info ...
For starters, what distro are you using? You said you moved /var and /tmp to a shared partition of their own. By this, do you mean you created these directories on another partition and created symlinks to them? Do you mean something else?
Is this "shared partition" automatically mounted (as directed by /etc/fstab), and is it getting mounted rw?
|
|
|
03-01-2007, 07:07 AM
|
#3
|
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019
Original Poster
Rep:
|
Hello,
Thanks for your reply. This is just a quick note to let you know that the issue seems to be solved.
Yes, I put /tmp and /var on a single shared partition exactly as you described. The procedure appears to work very well for Gentoo (which is where I got my information) but this was on Suse. I moved my home and tmp partitions without a problem but var was something else.
Anyway, I tried quite a few tricks, including reinstalling sysklogd and klogd, until I saw a pattern to it: it seemed as if something was actually protecting /var/run from being written to. I didn't find anything useful on the net but a few blogs vaguely mentioned AppArmor. All I had to do, it turns out, was run AppArmor and change permissions for klogd.pid.
|
|
|
All times are GMT -5. The time now is 07:38 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|