summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-24 22:31:38 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-24 22:32:44 +0200
commita1b256b0b562481404bda8304e04dee7d7d5e7c9 (patch)
tree24ef1cba86f0a789d5ecc8fe5c19cbd8b09ca8f0 /units
parent683f468c54a81fd4084a2ba1082025959cd3c7d1 (diff)
unit: introduce exit.service for exiting from session instances
Diffstat (limited to 'units')
-rw-r--r--units/session/.gitignore1
-rw-r--r--units/session/exit.service.in8
2 files changed, 9 insertions, 0 deletions
diff --git a/units/session/.gitignore b/units/session/.gitignore
new file mode 100644
index 0000000000..eeb62b32ba
--- /dev/null
+++ b/units/session/.gitignore
@@ -0,0 +1 @@
+exit.service
diff --git a/units/session/exit.service.in b/units/session/exit.service.in
new file mode 100644
index 0000000000..86c8bbc672
--- /dev/null
+++ b/units/session/exit.service.in
@@ -0,0 +1,8 @@
+[Unit]
+Description=Exit
+Requires=shutdown.target
+After=shutdown.target
+
+[Service]
+Type=finish
+ExecStart=@SYSTEMCTL@ --session daemon-exit