LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-03-2009, 09:51 AM   #1
Latitude
Member
 
Registered: Mar 2009
Posts: 65

Rep: Reputation: 16
How do I check to see if dhcpd is running?


How do check to see if dhcpd is actually running on my machine?
 
Old 06-03-2009, 10:06 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
ps -Awl

should be enough?
 
Old 06-03-2009, 10:06 AM   #3
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
man pgrep

HTH

Forrest
 
Old 06-03-2009, 10:21 AM   #4
david1941
Member
 
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS7
Posts: 267

Rep: Reputation: 58
I use /service dhcpd status/

Dave
 
Old 06-03-2009, 10:55 AM   #5
Latitude
Member
 
Registered: Mar 2009
Posts: 65

Original Poster
Rep: Reputation: 16
ps -Awl listed dhcpd buried in the data. Very inefficient, listing too many processes.

man pgrep has the information I wanted to know out what pgrep is and what it does, thank you forrestt. pgrep dhcpd works like a charm showing the process ID number.

service dhcpd status is a great command. It showed me the process ID and told me in plain english that the process if running. Thanks everyone.
 
Old 06-03-2009, 02:16 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,247
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I would have modified the ps command..
ps -Awl | grep dchpd
like you said otherwise you see every process, way to much to sort through.


since that is a network service netstat should also be able to pull the info
netstat -alnp | grep dhcpd


just a few more options..
 
Old 06-03-2009, 02:42 PM   #7
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Latitude, you may in some instances want to do "pgrep -l command" For example, on my system, "pgrep ls" gives a pid, but "pgrep -l ls" shows that this is really pulseaudio.

Forrest
 
Old 06-03-2009, 02:54 PM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
To look for a specific process using ps, option -C is enough. I'd prefer the service command in this case, which can give some useful information about the running daemon (a good example is the apcupsd daemon which gives the status of the battery and a lot of information about the APC ups).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpd does not running on RH9 v1nc3nt Linux - Software 1 05-12-2006 12:33 AM
DHCPD running but no link hitesh50 Linux - Networking 1 02-08-2006 12:01 AM
running dhcpd at boot time Fritz_Monroe Slackware 6 06-16-2005 06:43 PM
dhcpd will not stay running scuzzman Linux - Networking 15 01-27-2005 10:34 AM
running DHCPD as non-root (RH 8.0) Pauly Linux - Networking 0 03-07-2003 11:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:10 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