Web Hosting Forum - A Web Hosting community for Webmasters


Divi WordPress Theme

Author Topic: Commands to restart services on Linux server  (Read 5966 times)

0 Members and 1 Guest are viewing this topic.

Offline Kailash

  • Administrator
  • Web Hosting Master
  • *****
  • Posts: 601
  • iTrader: +153/-0
    • View Profile
Commands to restart services on Linux server
« on: July 21, 2009, 10:22:54 AM »
Hi,

Some commands to restart services on Linux server:

DNS start/restart/stop/check current status:
starting: /etc/rc.d/init.d/named start
stopping: /etc/rc.d/init.d/named stop
restarting: /etc/rc.d/init.d/named restart
check status: /etc/init.d/named status

Restart/Start/stop MySQL:
/etc/init.d/mysql start
/etc/init.d/mysql stop
/etc/init.d/mysql restart

Start/Stop Spamassassin:
/etc/init.d/spamassassin start
/etc/init.d/spamassassin stop

Regards,

Kailash

VPS Hosting - AccuWebHosting

Offline digitalpoint

  • New Member
  • *
  • Posts: 45
  • iTrader: +0/-0
    • View Profile
Re: Commands to restart services on Linux server
« Reply #1 on: November 08, 2009, 01:23:37 AM »
Really useful commands. Thanks for sharing this!!

Digitalpoint

Offline kvchosting

  • New Member
  • *
  • Posts: 17
  • iTrader: +0/-0
    • View Profile
Re: Commands to restart services on Linux server
« Reply #2 on: November 25, 2009, 06:55:20 PM »
if you want to restart all cpanel services

run service cpanel restart

/scripts/restartsrv_http   this is for apache

/etc/init.d/named reload  remember named should not be restarted it needs to be reloaded.



Offline webhosting.am

  • New Member
  • *
  • Posts: 16
  • iTrader: +0/-0
    • View Profile
Re: Commands to restart services on Linux server
« Reply #3 on: July 21, 2010, 11:33:00 AM »
adorable information, thanks

Offline brainpulse

  • New Member
  • *
  • Posts: 14
  • iTrader: +0/-0
  • Web Hosting In India
    • View Profile
    • Web Hosting India
Re: Commands to restart services on Linux server
« Reply #4 on: September 15, 2010, 04:12:51 PM »
thanks,

interesting commands, This will helpful in reseller a/c........

Offline Mike_GoDaddy

  • Newbie
  • *
  • Posts: 1
  • iTrader: +0/-0
    • View Profile
    • Go Daddy
Re: Commands to restart services on Linux server
« Reply #5 on: August 31, 2012, 11:25:14 PM »
A single command that I use to quickly check the status of all services on a box is:

service --status-all

This lists all services on the box and their current status. 
Mike
Go Daddy® Hosting Ambassador

Offline pwhjenny

  • Newbie
  • *
  • Posts: 8
  • iTrader: +0/-0
    • View Profile
Re: Commands to restart services on Linux server
« Reply #6 on: September 15, 2012, 10:37:44 PM »
Hi,

There are following ways available to restart services on your cpanel/WHM server (Example of httpd service)

From SSH

1. /etc/init.d/httpd restart

2. /scripts/restartsrv_httpd

3. service httpd restart

From WHM

WHM >> Restart services >> http server.

---------------------------
Jenny - PrewebHost Managed Hosting Solutions.
cPanel, Windows Shared, Reseller & Dedicated server Hosting.
99.9% Uptime | 24x7x365 Friendly Support | USA Datacenter
http://www.prewebhost.com - Since 2010

Offline Steve Smith

  • Junior Guru
  • **
  • Posts: 233
  • iTrader: +0/-0
    • View Profile
Re: Commands to restart services on Linux server
« Reply #7 on: April 09, 2013, 11:45:21 AM »
Yes its really helpful and useful..Thanks for the post..

Divi WordPress Theme
Tags:
 

Related Topics

  Subject / Started by Replies Last post
1 Replies
2741 Views
Last post April 01, 2007, 09:15:57 AM
by scott
0 Replies
4229 Views
Last post July 30, 2007, 12:21:02 PM
by Kailash
0 Replies
2065 Views
Last post August 29, 2007, 02:29:47 AM
by Tech
0 Replies
3022 Views
Last post October 26, 2007, 03:12:54 PM
by Tech
0 Replies
239 Views
Last post April 05, 2016, 02:31:42 PM
by BirdCyber