Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-13-2002, 01:47 AM   #1
LQ Newbie
Registered: Nov 2002
Location: My bedroom
Distribution: RH 7.1
Posts: 29

Rep: Reputation: 15
stopping and starting services

Hi everyone.

I have installed Red Hat 7.1 and i am studying for the Linux+ exam. I don't know much but i heard this exam is a basic level exam.

My book tells me that to stop and start a service you do the following:

#./dhcp stop
#./dhcp start

when i do it i get no such file or directory error

I am logged in as root
Old 11-13-2002, 01:58 AM   #2
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
for dhcp, it should be:


And to enable it on startup, run this:

chkconfig --level 345 dhcpd on

Now, I don't why dhcpd can't be controlled by using the /sbin/service command (ie. service dhcpd start/stop/restart) or by /etc/init.d/dhcpd start/stop/restart) but most services can be controlled using the service command

# for xinetd
/sbin/service xinetd start/stop/restart

# for mysqld
/sbin/service xinetd start/stop/restart

# for httpd
/sbin/servie httpd start/stop/restart

Some services are xinetd controlled (not standalone services) and for this services, enabling them under the corresponding files in /etc/xinetd.d/ and then restart xinetd will make them accessible. Like for wu-ftpd, to enable, edit /etc/xinetd.d/wu-ftpd and set the the 'disable=yes' to 'disable=no' and then restart xinetd:

/sbin/service xinetd restart

Or, the easiest way is:

/sbin/chkconfig wu-ftpd on

no need to restart xinetd here. once an ftp connection is made, only then you should see an ftp daemon running.
Old 11-13-2002, 02:00 AM   #3
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Have you tried the full path to it ?? And usually the dhcp has a d at the end like this:

dhcpd stop or start
Old 11-13-2002, 02:10 AM   #4
Registered: Mar 2002
Location: INDIA
Distribution: Mandrake Linux 9.2, Knoppix 3.0
Posts: 158

Rep: Reputation: 30
Thumbs up try this

the files you are trying are normally localted in /etc/rc.d/init.d/ folders

mayank johri


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
starting/stopping services in debian Red Squirrel Linux - Software 8 03-09-2009 03:21 PM
starting & stopping services/daemons rand0mh3ro Linux - General 4 02-16-2005 09:27 AM
disabling stopping services ganxteh Fedora 6 12-17-2004 11:24 PM
stopping services? piglingz Linux - Software 3 06-24-2003 05:26 PM
Starting / Stopping / Restarting Services in VA Linux? abell Linux - General 1 11-15-2002 02:17 PM > Forums > Linux Forums > Linux - Newbie

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

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