service command in linux shell

service command is used to run System V init script and daemon processes. Here is the general syntax of service command.
 
service <scritp-name> command

You can use below command to see the status of all the services.
 
$ service –status-all

You can use below command to restart any service.
 
$ service <service-name> restart

You can use below command to stop any service.
 
$ service <service-name> stop

You can use below command to start any service.
 
$ service <service-name> start

List of well known services or daemons in Linux system
  • crond – cron scheduler
  • dhcpd – dynamic host configuration protocol manager
  • ftpd – ftp server daemon
  • httpd – http web server daemon
  • mysql – mysql server daemon
  • smtpd – mail protocol daemon
  • sshd – ssh server daemon
  • syslogd – system logging daemon

Web development and Automation testing

solutions delivered!!