User Tools

Site Tools


services:cheatsheet

This is an old revision of the document!


Services - Cheatsheet

systemdSysVinit
Start a servicesystemctl start service_name.serviceservice service_name start
Stop a service systemctl stop service_name.serviceservice service_name stop
Restart a service systemctl restart service_name.serviceservice service_name restart
Reload a service systemctl reload service_name.serviceservice service_name reload
Service statussystemctl status service_name.serviceservice service_name status
Restart a service if already runningsystemctl condrestart service_name.serviceservice service_name condrestart
Enable service at startupsystemctl enable service_name.servicechkconfig service_name on
Disable service at startupsystemctl disable service_name.servicechkconfig service_name off
Check if a service is enabled at startupsystemctl is-enabled service_name.servicechkconfig service_name
Create a new service file or modify configurationsystemctl daemon-reload service_name.servicechkconfig service_name –add

NOTE: New versions of systemd support systemctl start service_name etc.

services/cheatsheet.1467809741.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki