From 1389f4b95877f29cb357baee837d9c05e64df0c6 Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Wed, 9 Sep 2015 17:05:03 +0200 Subject: 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. --- 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 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; -- cgit v1.2.3-54-g00ecf