Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
linux:systemd [2019/12/31 00:48] – [Systemctl] tmadelinux:systemd [2024/01/23 23:20] – [Commands] tmade
Line 20: Line 20:
   journalctl   journalctl
   journalctl -xe   journalctl -xe
-  journalctl -u sshd -f                                        # "-f" -> follow such als "tail -f file"+  journalctl -u sshd -f                                        # "-f" -> follow such as "tail -f file"
   journalctl -u kubelet.service   journalctl -u kubelet.service
 +  systemctl list-units --state=failed
   sudo journalctl -xeu kubelet -o verbose   sudo journalctl -xeu kubelet -o verbose
   journalctl -fxeu kubelet.service   journalctl -fxeu kubelet.service
Line 37: Line 38:
   systemctl list-units --type=mount   systemctl list-units --type=mount
   systemctl stop ufw.service   systemctl stop ufw.service
 +
 +==== Commands ====
 +  hostnamectl set-hostname myhostname
 +  hostnamectl
      
 ==== Set Runlevel ==== ==== Set Runlevel ====
Line 50: Line 55:
   ln -sf /usr/lib/systemd/system/multi-user.target /etc/systemd/system/default.target    ln -sf /usr/lib/systemd/system/multi-user.target /etc/systemd/system/default.target 
  
-===== Service Units =====+==== Service Units ====
  
 Service units are located on SLES12 in: Service units are located on SLES12 in:
Line 221: Line 226:
 to service unit! to service unit!
  
-===Targets===+====systemd targets====
  
   multi-user.target                  #multiuser + network   multi-user.target                  #multiuser + network
linux/systemd.txt · Last modified: 2024/01/24 00:25 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki