about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <vincent@kivra.com>2016-01-21T11·46+0100
committerVincent Ambo <vincent@kivra.com>2016-01-21T11·46+0100
commited1184b3265c2be94fc398864e753b55f185c5e9 (patch)
tree24871ac070e8e6819bec0a546c691780e3c2f76c
parentf15a12bc4e60bcbf694d815d4eb037063ab23476 (diff)
Add systemd basics & unit types
-rw-r--r--slides.pdfpc18
-rw-r--r--slides.tex40
2 files changed, 58 insertions, 0 deletions
diff --git a/slides.pdfpc b/slides.pdfpc
index c4b4bf5e9fc7..d73ac6e855d5 100644
--- a/slides.pdfpc
+++ b/slides.pdfpc
@@ -34,3 +34,21 @@ Lennart Poettering of Pulseaudio fame and Kay Sievers decided to implement a new
 ### 7
 Systemd's design goals
 ### 8
+No more init scripts with opaque effects -> services are clearly defined units
+Unit dependencies -> systemd can figure out what can be started in parallel
+Process supervision: Unit can be configured in many ways, e.g. always restart, only restart on success etc
+Service logs: We'll talk more about this later
+### 9
+Units are the core component of systemd that users deal with. They define services and everything else that systemd needs to start and manage.
+Note that all these are the names of the respective man page on a system with systemd installed
+Types:
+systemd.service - processes controlled by systemd
+systemd.target - equivalent to "runlevels", grouping of units for synchronisation
+systemd.timer - more powerful replacement of cron that starts other units
+systemd.path - systemd equvialent of inotify, watches files/folders -> launches units
+systemd.socket - expose local IPC or network sockets, launch units on connections
+systemd.device - trigger units when certain devices are connected
+systemd.mount - systemd equivalent of fstab entries
+systemd.swap - like mount
+systemd.slice - unit groups for resource management purposes
+... and a few more specialised ones
\ No newline at end of file
diff --git a/slides.tex b/slides.tex
index 8a5302726033..06e0981249e3 100644
--- a/slides.tex
+++ b/slides.tex
@@ -1,6 +1,8 @@
 \documentclass[14pt]{beamer}
 \usetheme{metropolis}
 
+\newenvironment{code}{\ttfamily}{\par}
+
 \title{systemd}
 \subtitle{The standard Linux init system}
 
@@ -50,6 +52,44 @@
   \end{itemize}
 \end{frame}
 
+\begin{frame}{Systemd - the basics}
+  \begin{itemize}
+    \item No scripts are executed, only declarative units
+    \item Units have explicit dependencies
+    \item Processes are supervised
+    \item cgroups are utilised to apply resource limits
+    \item Service logs are managed and centrally queryable
+    \item Much more!
+  \end{itemize}
+\end{frame}
+
+\begin{frame}{Systemd units}
+  Units specify how and what to start. Several types exist:
+  \begin{code}
+    \small
+    \begin{columns}[T,onlytextwidth]
+      \column{0.5\textwidth}
+        \begin{itemize}
+          \item systemd.service
+          \item systemd.target
+          \item systemd.timer
+          \item systemd.path
+          \item systemd.socket
+        \end{itemize}
+      \column{0.5\textwidth}
+        \begin{itemize}
+          \item systemd.device
+          \item systemd.mount
+          \item systemd.swap
+          \item systemd.slice
+        \end{itemize}
+    \end{columns}
+  \end{code}
+\end{frame}
+
+\begin{frame}{}
+\end{frame}
+
 \section{Demo}
 
 \section{Controversies}