service
TLDR
List the name and status of all services
SYNOPSIS
service script command [options]
service --status-all
DESCRIPTION
service is a wrapper for init scripts in /etc/init.d/, providing a consistent interface to manage SysV init services. It automatically handles environment sanitization and path normalization for init script execution.
On systemd systems, service typically redirects commands to systemctl for backward compatibility. It remains useful for managing traditional init scripts and provides a familiar interface for administrators.
PARAMETERS
--status-all
List status of all servicesscript
Service name (script in /etc/init.d/)start
Start the servicestop
Stop the servicerestart
Stop and start the servicereload
Reload service configurationstatus
Show service status--full-restart
Perform full stop then start sequence
CAVEATS
On systemd systems, systemctl is preferred. Not all init scripts implement all commands (reload may not be available). The service command requires root privileges for most operations.
HISTORY
Introduced in Debian and adopted by other distributions as a standard interface for SysV init scripts. With the transition to systemd, service became a compatibility wrapper that translates commands to systemctl where appropriate.
SEE ALSO
systemctl(1), chkconfig(8), update-rc.d(8)


