Stop and Start Services under RedHat Linux

If you’re used to:

/etc/init.d/named restart
…you may find that:
service named restart
…is an easier way of doing the same thing.

Comments

Lauren's picture
I am using RedHat Linux version 7.2 and for some reason the Named service keeps stoppin itself. What would cause this and how do I go about fixing the problem so that it won’t continually do that? Thanks Lauren
Rob Fletcher's picture
I think you made a typo, it is ‘service named restart’ not ‘service restart named’, in my experience the daemon is the second argument. Also, if you are ‘service httpd restart’ing frequently and you only want to refresh the config files, most daemons allow for ‘service httpd reload’ which is a bit quicker. (I learned this last week, so now I’m an expert.)
Peter Rukavina's picture
Thanks for pointing that out, Rob. Original post has been corrected.
Steven Garrity's picture
In Fedora Core 2, /sbin is not in the default path for non root users, so you might have to type “sudo /sbin/service named restart”, or “su -” before you “service named restart”
Peter Rukavina's picture
Of course if you were a real Linux geek, you would already be ‘root,’ and therefore the need to sudo would be abrogated.
Prajyot Neve's picture
Hi, i am prajyot from india. I am using Red Hat Linux 9. What i wannna know is how particular service is started? & what is Loopback concept? If u know it please mail me at prajyot_neve@yahoo.co.uk.
titi's picture
I want creat a Script for Star and Stop the Service in linux.how are you hepl me.thank
Maneesh Joseph's picture
I want to know about ….cron service………I wat to change my iptables rules at specific times…..So how can i add it into my cron services..i want to do it daily 1.00 pm…. I have created 2 iptable files….with two different rules….am trying to restore the two files using cron service at two different times…… but its not working ,,,,, I am adding my crontab configuration below… 0 13 * * * iptables-restore /etc/sysconfig/iptables 30 13 * * * iptables-restore /etc/sysconfig/iptables2 I am using Fedora Core9….I have checked everything. Crone service is started…… Anybody can find a soultion…….please help me…….

Post new comment

You can comment anonymously if you must, but I would prefer it if you used your real name.
The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
Optional. If you enter the address of a website here, your name will be publicly linked to the site.
  • Adds typographic refinements.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.