Commands and Locations

  • custom services are stored here: /etc/systemd/system
  • analyse security of service unit: systemd-analyze security <service_unit>
  • restart a service: systemctl restart <application_name>.service
  • show logs of a service: journalctl -u <application_name>.service

List Services

  • list enabled services: systemctl list-unit-files --state=enabled
  • list running Services: systemctl list-units --type=service


  • delete old journal files (ony keep last 2 days): journalctl --vacuum-time=2d
Last modified July 16, 2022: fix headlines in linux doc (8863fae)