0% found this document useful (0 votes)
81 views1 page

RH Systemd PDF

This document provides a reference card on using systemd commands to view information about units and services, work with services by starting, stopping, and restarting them, change system states like rebooting and powering off, view log messages, and work with different unit file types. It lists common systemctl commands for listing dependencies and units, viewing jobs and unit files, checking service status, enabling and disabling services, and remotely running commands. It also outlines journalctl commands for viewing logs.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views1 page

RH Systemd PDF

This document provides a reference card on using systemd commands to view information about units and services, work with services by starting, stopping, and restarting them, change system states like rebooting and powering off, view log messages, and work with different unit file types. It lists common systemctl commands for listing dependencies and units, viewing jobs and unit files, checking service status, enabling and disabling services, and remotely running commands. It also outlines journalctl commands for viewing logs.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

VIEW systemd INFORMATION

systemctl list-dependencies Show a units dependencies

systemctl list-sockets List sockets and what activates

systemctl list-jobs View active systemd jobs


THE
systemctl list-unit-files See unit files and their states
systemd
systemctl list-units Show if units are loaded/active
REFERENCE
systemctl get-default List default target (like run level)
CARD
WORKING WITH SERVICES
AUGUST 28, 2014
systemctl stop service Stop a running service

systemctl start service Start a service

systemctl restart service Restart a running service

systemctl reload service Reload all config files in service

systemctl status service See if service is running/enabled

systemctl enable service Enable a service to start on boot

systemctl disable service Disable service--wont start at boot

systemctl show service Show properties of a service (or other unit)

systemctl -H host status network Run any systemctl command remotely

CHANGING SYSTEM STATES

systemctl reboot Reboot the system (reboot.target)

systemctl poweroff Power off the system (poweroff.target)

systemctl emergency Put in emergency mode (emergency.target)

systemctl default Back to default target (multi-user.target)

VIEWING LOG MESSAGES

journalctl Show all collected log messages

journalctl -u network.service See network service messages

journalctl -f Follow messages as they appear

journalctl -k Show only kernel messages

USING UNIT FILES

Besides services, most systemd commands can work with these unit types:
paths, slices, snapshots, sockets, swaps, targets, and timers

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy