service command in Linux

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

  1. crond – cron scheduler
  2. dhcpd – dynamic host configuration protocol manager
  3. ftpd – ftp server daemon
  4. httpd – http web server daemon
  5. mysql – mysql server daemon
  6. smtpd – mail protocol daemon
  7. sshd – ssh server daemon
  8. syslogd – system logging daemon

 

You may also like...