Skip to Content

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

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
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.)
Thanks for pointing that out, Rob. Original post has been corrected.
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”
Of course if you were a real Linux geek, you would already be ‘root,’ and therefore the need to sudo would be abrogated.
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.
I want creat a Script for Star and Stop the Service in linux.how are you hepl me.thank
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

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.