Evan Harmon - Memex

Systemd

img Systemd is a software suite that provides an array of system components for Linux operating systems. The main aim is to unify service configuration and behavior across Linux distributions. Its primary component is a "system and service manager" – an init system used to bootstrap user space and manage user processes. It also provides replacements for various daemons and utilities, including device management, login management, network connection management, and event logging. The name systemd adheres to the Unix convention of naming daemons by appending the letter d. It also plays on the term "System D", which refers to a person's ability to adapt quickly and improvise to solve problems.
wikipedia:: Systemd

Newest init system, largely replacing init (SysV)

Systemd vs init(SysV)

  • init(SysV)
    • older
    • Can only start processes serially, contra systemd
  • systemd
    • replaces init but there's still some controversy with it - big and complicated and does a lot of things
    • Can start processes in parallel
    • pid=1
    • Raspberry Pi uses systemd

  • systemd-analyze
    - how long OS took to boot
    • systemd-analyze blame
      • how long each service took to start
    • systemctl
      • list services running
        • systemctl --type=service
      • systemctl start myservice.service
      • systemctl stop myservice.service
      • systemctl restart myservice.service
      • systemctl reload myservice.service
      • sudo systemctl reload-or-restart application.service
      • systemctl enable myservice.service
        • To start a service at boot, use the enable command
        • Keep in mind that enabling a service does not start it in the current session. If you wish to start the service and enable it at boot, you will have to issue both the start and enable commands.
      • systemctl disable myservice.service
        • Stops it from starting on boot
      • systemctl status myservice.service
    • Create systemd service unit file
Systemd
Interactive graph
On this page
Systemd