How do I start, stop, restart linux service

How to Start a Service?

First Method:
/etc/init.d/service-name start

Second Method:
service service-name start

How to Stop a service?

First Method:
/etc/init.d/service-name stop

Second Method:
service service-name stop

How to Check the Status of a Service: (whether it is running or not)

First Method:
/etc/init.d/service-name status

Second Method:
service service-name status

How to restart a service on dedicated server?

First Method:
/etc/init.d/service-name restart

Second Method:
service service-name restart

It might be possible that few services may have extra command settings. To find the available ones, enter:

First Method:
/etc/init.d/rsync [start, stop, reload, force-reload, restart, status]

Second Method:
service rsync

Source: http://kb.eukhost.com/how-to-start-stop-and-restart-services-on-linux-dedicated-server/

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How do I change my remember password options in Google Chrome

Manage your website passwords This article applies to the Google Chrome browser on Windows,...

Change time is Gmail

Correct Your Gmail Time Zone To set your Gmail time zone: Click the gear in your Gmail's...

How to speed up Windows XP use at your own risk

Warning: occasionally people break their PC badly by using this list of suggestions. Usually...

How to run cmd in escalated mode with admin rights to modify firewall

a solution: runas /user:administrator@domainname.local cmd then in the resulting command...

How do I enable auto login in Windows

This article describes how to configure Windows to automate the logon...