LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-09-2002, 03:56 PM   #1
islandkid
Member
 
Registered: Mar 2002
Location: Victoria, BC, Canada
Distribution: None (www.linuxfromscratch.org)
Posts: 103

Rep: Reputation: 15
dhcpcd error


this message is left in my logfile when dhcpcd tries to start:
dhcpcd[115]: writePidFile: fopen: No such file or directory

Does anyone know what this means? What would writePidFile be trying to write? How would I find out what it is trying to write?
 
Old 08-09-2002, 08:24 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
I ran strings on dhcpcd and it looks like the pid files are put in /var/run. The %s is replaced with the network interface. (eth0, eth1, ppp0, etc... )

Code:
# strings dhcpcd | grep pid 
waitpid
/var/run/dhcpcd-%s.pid
/var/run/dhcpcd-%s.pid
 
Old 08-11-2002, 07:03 AM   #3
bbeers
Member
 
Registered: Jul 2002
Location: Florida
Distribution: Centos, Slackware
Posts: 260

Rep: Reputation: 30
A pidfile is a text file with the _P_rocess _I_D_ for an application. This is useful for when it is time to do a graceful shutdown of the application or the entire system. Applications which create a pidfile when they start do not all use the same location in the file system for creating the pidfile and it seems that with your current system, dhcpcd is trying to create its pidfile in a directory that is not there. If crabboy is right, and I have no reason to doubt him, you need to create a /var/run directory in your file system, so that dhcpcd (and probably many other apps) can write the pidfile there.

-bbeers
 
Old 08-12-2002, 12:50 PM   #4
islandkid
Member
 
Registered: Mar 2002
Location: Victoria, BC, Canada
Distribution: None (www.linuxfromscratch.org)
Posts: 103

Original Poster
Rep: Reputation: 15
cool, thanks for that insight. I know I definately have a /var/run directory though. Could the name of the accual pidfile directory be found in the dhcpd.c source file? I'll check.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpcd afruscione Linux - Networking 3 03-21-2007 03:33 AM
dhcpcd rwescoat Linux - Networking 14 10-16-2004 12:53 PM
Help with dhcpcd jamescov Slackware 3 11-21-2003 04:25 PM
dhcpcd chrismiceli Linux - Networking 2 10-21-2002 11:09 AM
Please help, dhcpcd! majon96 Linux - Newbie 3 05-19-2002 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration