Systemd
Siehe auch
Systemd User Sessions und Scopes
systemd-user-sessions.serviceerlaubt User-SessionsScope:
session-419.scopeist beispielsweise dieSession 419 of user alice. Ein Scope umfasst alles pro Login (= Session).Slice:
user-486200009.sliceist dieUser Slice of UID 486200009. Ein Slice umfasst alles pro Benutzer, übergeordnet und unabhängig von der Anzahl der Logins.
Services starten nicht?
Services bleiben beim Start hängen?
systemctl status myservice
journalctl --boot --unit myservice
systemctl list-dependencies myservice
systemd-analyze blame
systemd-analyze critical-chain
systemd-analyze critical-chain myservice
Bootup is not yet finished?
systemctl list-jobs
Die aufgelisteten Jobs einzeln stoppen, bis die Maschine wieder offiziell „up“ ist. Ziemlich sicher stimmt an mindestens einer der Service-Konfigurationen etwas nicht - beispielsweise prüfen, ob ein .service fälschlicherweise enabled ist, obwohl es einen passenden .timer-Job dazu gibt.
systemctl Cheat Sheet
systemctl daemon-reload
systemctl enable --now systemd-tmpfiles-clean.timer
systemctl start httpd.service
systemctl status httpd.service
systemctl reload-or-restart httpd.service
systemctl reload httpd.service
systemctl restart httpd.service
systemctl stop httpd.service
systemctl disable --now systemd-tmpfiles-clean.timer
# remove unit from failed list
systemctl reset-failed httpd.service
systemctl is-enabled httpd.service
systemctl is-active httpd.service
systemctl is-failed httpd.service
systemctl mask httpd.service
systemctl unmask httpd.service
systemctl isolate multi-user.target
systemctl get-default
systemctl set-default multi-user.target
systemctl list-dependencies httpd.service
systemctl list-unit-files --type=service
systemctl list-units --type=service
systemctl list-units --type=mounts
systemctl list-units --type=service --all
systemctl reboot
systemctl poweroff
Built on 2025-07-14