summaryrefslogtreecommitdiff
path: root/shutdown-if-no-sessions.service.in
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-01-25 00:56:34 +0100
committerAki <please@ignore.pl>2024-01-25 00:56:34 +0100
commit4a0697a0e19fcf7b19abbabffb14cba33aee3491 (patch)
tree1d16f245d2098ac4f08aa42b5b546cdcd5569e86 /shutdown-if-no-sessions.service.in
downloadsystemd-ready-for-shutdown-4a0697a0e19fcf7b19abbabffb14cba33aee3491.zip
systemd-ready-for-shutdown-4a0697a0e19fcf7b19abbabffb14cba33aee3491.tar.gz
systemd-ready-for-shutdown-4a0697a0e19fcf7b19abbabffb14cba33aee3491.tar.bz2
Naive approach that seems to work with mayohiga
One of the important flaws is that if one of the intended services will not run, then shutdown may not happen at all. With current mayohiga setup this will not happen but it may break in any other case.
Diffstat (limited to 'shutdown-if-no-sessions.service.in')
-rw-r--r--shutdown-if-no-sessions.service.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/shutdown-if-no-sessions.service.in b/shutdown-if-no-sessions.service.in
new file mode 100644
index 0000000..f8d6748
--- /dev/null
+++ b/shutdown-if-no-sessions.service.in
@@ -0,0 +1,7 @@
+[Unit]
+Description=Shutdown if nobody is logged in
+Documentation=man:shutdown-if-no-sessions.service(8)
+
+[Service]
+Type=oneshot
+ExecStart=@LIBEXECDIR@/shutdown-if-no-sessions