Difference between revisions of "Systemd"

From DWIKI
⧼monobook-jumptonavigation⧽⧼monobook-jumptosearch⧽
m
m
Line 27: Line 27:
  
 
= HOWTO =
 
= HOWTO =
 +
  
 
== Timers ==
 
== Timers ==
 +
*https://opensource.com/article/20/7/systemd-timers
 +
*https://wiki.archlinux.org/title/Systemd/Timers
 +
 +
man systemd.timer
 +
=== List active timers ===
  
===List active timers===
 
 
  systemctl list-timers
 
  systemctl list-timers
  
===List active timers===
+
=== List active timers ===
 +
 
 
  systemctl list-timers --all
 
  systemctl list-timers --all
  
 +
 
  
 
=== Show active timers ===
 
=== Show active timers ===
Line 41: Line 48:
 
  systemctl status *timer
 
  systemctl status *timer
  
===Create timer===
+
=== Create timer ===
 +
 
 
  systemctl enable fstrim.timer
 
  systemctl enable fstrim.timer
  

Revision as of 10:00, 1 November 2021

 

Documentation

(Single user/emergency

Locations

/etc/systemd
/usr/lib/systemd/
/lib/systemd

 

HOWTO

Timers

man systemd.timer

List active timers

systemctl list-timers

List active timers

systemctl list-timers --all

 

Show active timers

systemctl status *timer

Create timer

systemctl enable fstrim.timer

FAQ

Analyze boot processes

systemd-analyze blame

 

Systemd and DNS

resolvectl status

Restart:

systemctl restart systemd-resolved

All status

systemctl status -a

syslog spam

https://psyq123.wordpress.com/2015/06/29/if-you-get-a-lot-of-logspam-from-systemd-in-your-varlogsyslog-this-might-help/

list available services

systemctl list-unit-files

or

systemctl list-units

 

normal interface names

net.ifnames=0

Show failed services

systemctl --failed

 

systemd: Started Session

Change loglevel to notice in /etc/systemd/system.conf

systemctl daemon-reexec