How to manage system services on Linux

There are currently 3 main init systems used by Linux. A few years ago, there was just one, SysVinit, but it’s been deprecated in most distros by now. Currently, most distros are switching to systemd, for example, Debian Jessie. The most notable distribution using systemd are Fedora, CentOS, RedHat, OpenSuse, Ubuntu, Mint.

I will briefly introduce the whole thing.

Print active services in human-readable form.

Print active services without legend/headers.

Print statıus of single service.

Check if the service is active.

Enable as a startup service.

Disable a sartup service.

Start s service.

Stop a service.

Reload service’s configuration.

Restart a service.

Restart a service if it’s running.



DevOps / SRE & Software & Architect & Linux Geek —

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store