DevOps Notebook: systemd and journalctl

Arun Kumar Singh
2 min readOct 18, 2020

Systemd and Journalctl are modern tools for Linux admins now a days. In this post I am trying to capture important details for quick understanding.

systemd

Systemd is an init system and system manager recently adopted by Linux systems. Definition from linux manual -

systemd is a system and service manager for Linux operating systems.
When run as first process on boot (as PID 1), it acts as init system
that brings up and maintains userspace services. Separate instances
are started for logged-in users to start their services.

systemd is usually not invoked directly by the user, but is installed as the /sbin/init symlink and started during early boot.

Commands which can help

systemctl status kubelet.service
systemctl start kubelet.service
systemctl stop kubelet.service
systemctl reload kubelet.service
systemctl restart kubelet.service
systemctl enable kubelet.service
systemctl is-active kubelet.service
systemctl is-enabled kubelet.service
systemctl list-units -all
systemctl list-unit-files | grep service | grep enabled
systemctl list-units --type=service# config filesystemctl cat kubelet.service# dependencies systemctl list-dependencies kubelet.service

One of the main benefit behind the systemd journal is to centralize the management of logs regardless of…

--

--

Arun Kumar Singh
Arun Kumar Singh

Written by Arun Kumar Singh

In quest of understanding How Systems Work !

No responses yet