summaryrefslogtreecommitdiff
path: root/src/login/logind.h
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-04-23 17:11:28 +0200
committerDaniel Mack <daniel@zonque.org>2015-04-24 17:48:12 +0200
commit867c37f6bb20886204679df9a43c973e2d7e44a5 (patch)
tree9ee29c9c237d6afd52cbefab9ac6b800aed77d19 /src/login/logind.h
parente2fa5721c3ee5ea400b99a6463e8c1c257e20415 (diff)
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.
Diffstat (limited to 'src/login/logind.h')
-rw-r--r--src/login/logind.h2
1 files changed, 2 insertions, 0 deletions
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;