Install Service On A Debian, Ubuntu, Kali, CentOS, Fedora And Raspbian

Install Service On A Debian, Ubuntu, Kali, CentOS, Fedora And Raspbian

service

Manage services by running init scripts.
The full script path should be omitted (/etc/init.d/ is assumed).

Maintainer: Debian sysvinit maintainers



Section: admin

Install service

  • Debian apt-get install sysvinit-utils Click to copy
  • Ubuntu apt-get install sysvinit-utils Click to copy
  • Kali Linux apt-get install init-system-helpers Click to copy
  • CentOS yum install initscripts Click to copy
  • Fedora dnf install initscripts Click to copy
  • Raspbian apt-get install sysvinit-utils Click to copy

Manage services by running init scripts. The full script path should be omitted (/etc/init.d/ is assumed).

How to use service?

Below are few example commands for service that you can use in the terminal.

Start/Stop/Restart/Reload service (start/stop should always be available):
service init_script start|stop|restart|reloadClick to copy
Do a full restart (runs script twice with start and stop):
service init_script --full-restartClick to copy
Show the current status of a service:
service init_script statusClick to copy
List the status of all services:
service --status-allClick to copy
Installing service command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Kali, CentOS, Fedora and Raspbian operating systems. Once you run the command it will install the latest version of service 2026 package in your OS.