User Tools

Site Tools


doc:appunti:linux:sa:systemd

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
doc:appunti:linux:sa:systemd [2023/12/13 12:32] – [Riferimenti web] niccolodoc:appunti:linux:sa:systemd [2024/11/15 15:01] (current) – [Verifica dipendenze servizi] niccolo
Line 168: Line 168:
 </code> </code>
  
-===== Sostituto di rc.local =====+===== Verifica dipendenze servizi ===== 
 + 
 +Generates textual **dependency graph** description in //dot// format: 
 + 
 +<code> 
 +systemd-analyze dot 
 +systemd-analyze dot 'dhcpcd.*' 
 +systemd-analyze dot dhcpcd.service 
 +</code> 
 + 
 +Prints an **SVG graphic** detailing **which system services have been started at what time**: 
 + 
 +<code> 
 +systemd-analyze plot > services-start-graph.svg 
 +</code> 
 + 
 +Shows units **required** and **wanted** by the specified units: 
 + 
 +<code> 
 +systemctl list-dependencies 
 +systemctl list-dependencies dhcpcd.service 
 +systemctl list-dependencies wpa_supplicant@..service 
 +</code> 
 + 
 +  * **[[https://serverfault.com/questions/617398/is-there-a-way-to-see-the-execution-tree-of-systemd|Is there a way to see the execution tree of systemd?]]** 
 +  * **[[https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html|systemd.unit — Unit configuration]]** 
 +  * **[[https://www.freedesktop.org/software/systemd/man/latest/systemd.slice.html|systemd.slice — Slice unit configuration]]** 
 + 
 +===== Alternativa allo script rc.local ===== 
 + 
 +Come eseguire uno script all'avvio di un sisetma Systemd.
  
 Creare una unit Systemd **/etc/systemd/system/my-startup.service**: Creare una unit Systemd **/etc/systemd/system/my-startup.service**:
doc/appunti/linux/sa/systemd.1702467153.txt.gz · Last modified: 2023/12/13 12:32 by niccolo