From 867c37f6bb20886204679df9a43c973e2d7e44a5 Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Thu, 23 Apr 2015 17:11:28 +0200 Subject: logind: add support for /run/nologin and /run/systemd/shutdown/scheduled Port over more code from shutdownd and teach logind to write /run/nologin at least 5 minutes before the system is going down, and /run/systemd/shutdown/scheduled when a shutdown is scheduled. --- src/login/logind.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/login/logind.h') diff --git a/src/login/logind.h b/src/login/logind.h index 1c60b01860..56c05b850c 100644 --- a/src/login/logind.h +++ b/src/login/logind.h @@ -102,6 +102,8 @@ struct Manager { sd_event_source *scheduled_shutdown_timeout_source; uid_t scheduled_shutdown_uid; char *scheduled_shutdown_tty; + sd_event_source *nologin_timeout_source; + bool unlink_nologin; char *wall_message; unsigned enable_wall_messages; -- cgit v1.2.3-54-g00ecf