From 4a0697a0e19fcf7b19abbabffb14cba33aee3491 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 25 Jan 2024 00:56:34 +0100 Subject: 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. --- ready-for-shutdown.target.8.in | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ready-for-shutdown.target.8.in (limited to 'ready-for-shutdown.target.8.in') diff --git a/ready-for-shutdown.target.8.in b/ready-for-shutdown.target.8.in new file mode 100644 index 0000000..babba56 --- /dev/null +++ b/ready-for-shutdown.target.8.in @@ -0,0 +1,18 @@ +.TH ready-for-shutdown.target 8 "2024-01-25" +.SH NAME +ready-for-shutdown.target, shutdown-if-no-sessions.service - systemd target that marks completion of routine boot tasks +.SH SYNOPSIS +.B ready-for-shutdown.target +.br +.B shutdown-if-no-sessions.service +.SH DESCRIPTION +Target is intended to mark the completion of all scheduled tasks and readiness for shutdown that is triggered +immediately after. Before enabling this target add +.B [Install] +section listing all units that are intended to be run before shutting down. +.SH FILES +.I @SYSDDIR@/ready-for-shutdown.target +.br +.I @SYSDDIR@/shutdown-if-no-sessions.service +.br +.I @LIBEXECDIR@/shutdown-if-no-sessions -- cgit v1.1