diff --git a/demo/demo-error@.service b/demo/demo-error.service similarity index 100% rename from demo/demo-error@.service rename to demo/demo-error.service diff --git a/demo/demo-limits.slice b/demo/demo-limits.slice index 583db59ba..998185d26 100644 --- a/demo/demo-limits.slice +++ b/demo/demo-limits.slice @@ -5,4 +5,3 @@ Before=slices.target [Slice] CPUQuota=10% -MemoryLimit=1G diff --git a/demo/demo-path.path b/demo/demo-path.path new file mode 100644 index 000000000..87f1342da --- /dev/null +++ b/demo/demo-path.path @@ -0,0 +1,6 @@ +[Unit] +Description=Demonstrate systemd path units + +[Path] +DirectoryNotEmpty=/tmp/hackeriet +Unit=demo.service diff --git a/demo/demo-stress.service b/demo/demo-stress.service new file mode 100644 index 000000000..7e14f13e2 --- /dev/null +++ b/demo/demo-stress.service @@ -0,0 +1,6 @@ +[Unit] +Description=Stress test CPU + +[Service] +Slice=demo.slice +ExecStart=/usr/bin/stress -c 5 diff --git a/demo/demo-timer.service b/demo/demo-timer.service deleted file mode 100644 index 2f6a20e14..000000000 --- a/demo/demo-timer.service +++ /dev/null @@ -1,6 +0,0 @@ -[Unit] -Description=Demo unit for systemd timers - -[Service] -Type=oneshot -ExecStart=/usr/bin/echo "Systemd timer fired! Hello Hackeriet." diff --git a/demo/demo-timer.timer b/demo/demo-timer.timer index ab5ec5135..34eccb98b 100644 --- a/demo/demo-timer.timer +++ b/demo/demo-timer.timer @@ -5,7 +5,7 @@ Description=Demonstrate systemd timers OnActiveSec=2 OnUnitActiveSec=5 AccuracySec=5 - +Unit=demo.service # OnCalendar=Thu,Fri 2016-*-1,5 11:12:13 [Install] diff --git a/demo/demo.service b/demo/demo.service new file mode 100644 index 000000000..fcc710ad9 --- /dev/null +++ b/demo/demo.service @@ -0,0 +1,6 @@ +[Unit] +Description=Demo unit for systemd + +[Service] +Type=oneshot +ExecStart=/usr/bin/echo "Systemd unit activated. Hello Hackeriet." diff --git a/slides.pdfpc b/slides.pdfpc index 35fa8309e..99326bd8b 100644 --- a/slides.pdfpc +++ b/slides.pdfpc @@ -82,4 +82,4 @@ Another thing is that services start depending on systemd when they shouldn't, a Despite criticism, systemd was adopted rapidly by large portions of the Linux Initially in RedHat, because Poettering and co work there and it was clear from the beginning that it would be there ArchLinux (which I'm using) and a few others followed suit quite quickly -Eventually, the big Debian init system discussion - after a lot of flaming - led to Debian adopting it as well, which had a ripple effect for related distros such as Ubuntu which abandoned upstart for it. +Eventually, the big Debian init system discussion - after a lot of flaming - led to Debian adopting it as well, which had a ripple effect for related distros such as Ubuntu which abandoned upstart for it. \ No newline at end of file diff --git a/slides.tex b/slides.tex index 51706e599..de5a7bf80 100644 --- a/slides.tex +++ b/slides.tex @@ -1,4 +1,4 @@ -\documentclass[14pt]{beamer} +\documentclass[12pt]{beamer} \usetheme{metropolis} \newenvironment{code}{\ttfamily}{\par}