summaryrefslogtreecommitdiff
path: root/services/sigterm.in
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-03-25 13:10:13 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-03-25 13:28:07 +0200
commit021f091082a74d5bd5503a3a3c7a569eee9c6d8f (patch)
tree5a1c742a3e4a1933ed3a54f39a7069f97e2500f1 /services/sigterm.in
parent0a280740716bde571c0f0db64d78a7f2141b56f4 (diff)
Use services to implement shutdown/reboot sequence
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'services/sigterm.in')
-rw-r--r--services/sigterm.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/services/sigterm.in b/services/sigterm.in
new file mode 100644
index 0000000..c98e037
--- /dev/null
+++ b/services/sigterm.in
@@ -0,0 +1,10 @@
+name = "sigterm"
+description = "send SIGTERM to all processes"
+exec = "@SCRIPTDIR@/killall5 15"
+exec = "@BINPATH@/sleep 5"
+type = wait
+target = "%0"
+before = "sigkill"
+before = "sync"
+before = "reboot"
+before = "shutdown"