Differences between revisions 3 and 4
Revision 3 as of 2021-11-30 09:48:44
Size: 929
Editor: PieterSmit
Comment:
Revision 4 as of 2022-03-01 19:21:19
Size: 1055
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
 * Links [[https://www.freedesktop.org/software/systemd/man/bootup.html|systemd bootup flow]]
Line 25: Line 26:
== Restart system == == Refresh filesystems after updating /etc/fstab ==

Linux systemd startup and process monitoring

View process logs with jounalctl

  • Links digitalocean

  • Set timezone for log display using
    • $ timedatectl list-timezones
    • $ sudo timedatectl set-timezone zone
    • $ timedatectl status
    • only logs for current boot / since last reboot
      • $ journalctl -b
      • $ journalctl --list-boots
      • $ journalctl --since "2015-01-10" --until "2015-01-11 03:00"
      • $ journalctl --since 09:00 --until "1 hour ago"
    • journalctl -u nginx.service -u php-fpm.service --since today

Refresh filesystems after updating /etc/fstab

  • # systemctl daemon-reload
  • # systemctl restart remote-fs.target
  • # systemctl restart local-fs.target

...

Linux/Systemd (last edited 2022-03-01 19:21:19 by PieterSmit)