summaryrefslogtreecommitdiff
path: root/src/login/logind.h
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-09-09 17:05:03 +0200
committerDaniel Mack <daniel@zonque.org>2015-09-09 17:52:11 +0200
commit1389f4b95877f29cb357baee837d9c05e64df0c6 (patch)
tree6099c4fb9dc5f1f059e9b194a8378feb66d01f21 /src/login/logind.h
parent37b76fd3ee5a03d76786e7bd1e0f8596e6ce47d6 (diff)
logind: allow dry run variants for scheduled shutdowns
Allow passing a "dry-" prefix to the action parameter passed to .ScheduleShutdown(). When strings with this prefix are passed, the scheduled action will not take place. Instead, an info message is logged.
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 ce99d75bc1..7990da5a93 100644
--- a/src/login/logind.h
+++ b/src/login/logind.h
@@ -107,6 +107,8 @@ struct Manager {
unsigned enable_wall_messages;
sd_event_source *wall_message_timeout_source;
+ bool shutdown_dry_run;
+
sd_event_source *idle_action_event_source;
usec_t idle_action_usec;
usec_t idle_action_not_before_usec;