Services

1. Init Systems   init

ID: da8ae0b8-adcf-4639-9cfa-01b7b9fb3c44
CREATED: <2025-02-16 Sun 18:49>

[2025-02-16 Sun 18:52] init - Wikipedia

SystemV -> systemd, OpenRC

1.1. systemd   systemd

ID: 27dd8c6f-e018-4c91-9113-325be8ee483a
CREATED: <2025-02-16 Sun 18:55>

[2025-02-16 Sun 18:55] Chapter 10. Managing Services with systemd | Red Hat Product Documentation [2025-02-16 Sun 18:55] systemd

1.1.1. Units

ID: 5fb03f4f-e7ba-47fe-a502-185348417aa4
CREATED: <2025-02-16 Sun 18:56>

[2025-02-16 Sun 19:02] systemd.unit

systemd provides a dependency system between various entities called "units" of 11 different types.

In addition to the generic [Unit] and [Install] sections described here, each unit may have a type-specific section, e.g. [Service] for a service unit. See the respective man pages for more information:

  • systemd.service(5)
  • systemd.socket(5)
  • systemd.device(5)
  • systemd.mount(5)
  • systemd.automount(5)
  • systemd.swap(5)
  • systemd.target(5)
  • systemd.path(5)
  • systemd.timer(5)
  • systemd.slice(5)
  • systemd.scope(5)
[Unit]
Description=Emacs text editor
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/

[Service]
Type=notify
ExecStart=/usr/local/bin/emacs --fg-daemon

# Emacs will exit with status 15 after having received SIGTERM, which
# is the default "KillSignal" value systemd uses to stop services.
SuccessExitStatus=15

# The location of the SSH auth socket varies by distribution, and some
# set it from PAM, so don't override by default.
# Environment=SSH_AUTH_SOCK=%t/keyring/ssh
Restart=on-failure

[Install]
WantedBy=default.target
  1. Templates
    ID: 55bce339-207c-47fc-b829-7567d95e46fa
    CREATED: <2025-02-16 Sun 21:08>
    

    [2025-02-16 Sun 21:08] systemd.service