Draw the boot dependency graph

Render the boot dependency graph as SVG and open it

systemd-analyze dot --require | dot -Tsvg > boot.svg && open boot.svg

tool
systemd26 commands
tags
systemddebug

More systemd commands

  • cat > /etc/systemd/system/myapp.service <<EOF [Unit] Description=My App After=network.target [Service] ExecStart=/usr/bin/myapp Restart=always RestartSec=5 User=appuser [Install] WantedBy=multi-user.target EOF

    Minimal service unit template with automatic restart

  • systemd-run --uid=1000 --gid=1000 --wait /usr/bin/myapp --task

    Run a transient unit as UID 1000 and wait until it finishes

  • cat > /etc/systemd/system/backup.timer <<EOF [Unit] Description=Daily backup [Timer] OnCalendar=daily Persistent=true [Install] WantedBy=timers.target EOF

    Daily timer that replaces cron; Persistent=true runs missed jobs after downtime

  • systemctl set-property myapp.service MemoryMax=512M CPUQuota=50%

    Set cgroup limits without editing the unit file

  • systemctl status myapp.service | grep -E 'Memory:|CPU:|Tasks:'

    Current memory, CPU time and task count from the cgroup

all 26 systemd commands