about summary refs log tree commit diff
path: root/presentations/systemd-2016/demo
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-06-26T19·38+0100
committertazjin <mail@tazj.in>2020-06-26T19·51+0000
commit2e3b03b5ae04cc9d4da0001aff07962bf4107d42 (patch)
tree75d929acb15720bc8eb1182d105e2ecaa2626ba0 /presentations/systemd-2016/demo
parent1d0e421cb86861c64b58d5aa66dce295ffe28af5 (diff)
chore(tazjin): Move my presentations to my user directory r/1090
Change-Id: I72b25680e7167c3a55477111c28b1d4936c60e2c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/606
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'presentations/systemd-2016/demo')
-rw-r--r--presentations/systemd-2016/demo/demo-error.service7
-rw-r--r--presentations/systemd-2016/demo/demo-limits.slice7
-rw-r--r--presentations/systemd-2016/demo/demo-notify@.service6
-rw-r--r--presentations/systemd-2016/demo/demo-path.path6
-rw-r--r--presentations/systemd-2016/demo/demo-stress.service6
-rw-r--r--presentations/systemd-2016/demo/demo-timer.timer12
-rw-r--r--presentations/systemd-2016/demo/demo.service6
-rw-r--r--presentations/systemd-2016/demo/notes.md27
8 files changed, 0 insertions, 77 deletions
diff --git a/presentations/systemd-2016/demo/demo-error.service b/presentations/systemd-2016/demo/demo-error.service
deleted file mode 100644
index b2d4c9d347..0000000000
--- a/presentations/systemd-2016/demo/demo-error.service
+++ /dev/null
@@ -1,7 +0,0 @@
-[Unit]
-Description=Demonstrate failing units
-OnFailure=demo-notify@%n.service
-
-[Service]
-Type=oneshot
-ExecStart=/usr/bin/false
diff --git a/presentations/systemd-2016/demo/demo-limits.slice b/presentations/systemd-2016/demo/demo-limits.slice
deleted file mode 100644
index 998185d261..0000000000
--- a/presentations/systemd-2016/demo/demo-limits.slice
+++ /dev/null
@@ -1,7 +0,0 @@
-[Unit]
-Description=Limited resources demo
-DefaultDependencies=no
-Before=slices.target
-
-[Slice]
-CPUQuota=10%
diff --git a/presentations/systemd-2016/demo/demo-notify@.service b/presentations/systemd-2016/demo/demo-notify@.service
deleted file mode 100644
index e25524b4e2..0000000000
--- a/presentations/systemd-2016/demo/demo-notify@.service
+++ /dev/null
@@ -1,6 +0,0 @@
-[Unit]
-Description=Demonstrate systemd templating by sending a notification
-
-[Service]
-Type=oneshot
-ExecStart=/usr/bin/notify-send 'Systemd notification' '%i'
diff --git a/presentations/systemd-2016/demo/demo-path.path b/presentations/systemd-2016/demo/demo-path.path
deleted file mode 100644
index 87f1342da9..0000000000
--- a/presentations/systemd-2016/demo/demo-path.path
+++ /dev/null
@@ -1,6 +0,0 @@
-[Unit]
-Description=Demonstrate systemd path units
-
-[Path]
-DirectoryNotEmpty=/tmp/hackeriet
-Unit=demo.service
diff --git a/presentations/systemd-2016/demo/demo-stress.service b/presentations/systemd-2016/demo/demo-stress.service
deleted file mode 100644
index 7e14f13e29..0000000000
--- a/presentations/systemd-2016/demo/demo-stress.service
+++ /dev/null
@@ -1,6 +0,0 @@
-[Unit]
-Description=Stress test CPU
-
-[Service]
-Slice=demo.slice
-ExecStart=/usr/bin/stress -c 5
diff --git a/presentations/systemd-2016/demo/demo-timer.timer b/presentations/systemd-2016/demo/demo-timer.timer
deleted file mode 100644
index 34eccb98b0..0000000000
--- a/presentations/systemd-2016/demo/demo-timer.timer
+++ /dev/null
@@ -1,12 +0,0 @@
-[Unit]
-Description=Demonstrate systemd timers
-
-[Timer]
-OnActiveSec=2
-OnUnitActiveSec=5
-AccuracySec=5
-Unit=demo.service
-# OnCalendar=Thu,Fri 2016-*-1,5 11:12:13
-
-[Install]
-WantedBy=multi-user.target
diff --git a/presentations/systemd-2016/demo/demo.service b/presentations/systemd-2016/demo/demo.service
deleted file mode 100644
index fcc710ad93..0000000000
--- a/presentations/systemd-2016/demo/demo.service
+++ /dev/null
@@ -1,6 +0,0 @@
-[Unit]
-Description=Demo unit for systemd
-
-[Service]
-Type=oneshot
-ExecStart=/usr/bin/echo "Systemd unit activated. Hello Hackeriet."
diff --git a/presentations/systemd-2016/demo/notes.md b/presentations/systemd-2016/demo/notes.md
deleted file mode 100644
index b4866b1642..0000000000
--- a/presentations/systemd-2016/demo/notes.md
+++ /dev/null
@@ -1,27 +0,0 @@
-# simple oneshot
-
-Run `demo-notify@hello.service`
-
-# simple timer
-
-Run `demo-timer.timer`, show both
-
-# enabling
-
-Enable `demo-timer.timer`, go to symlink folder, disable
-
-# OnError
-
-Show & run `demo-error.service`
-
-# cgroups demo
-
-Start `demo-stress.service` without, show in htop, stop
-Show slice unit, start slice unit
-Add Slice=demo-limits.slice
-daemon-reload
-Start stress again
-
-# Proper service
-
-Look at nginx unit