summaryrefslogtreecommitdiffstats
path: root/src/shutdownd.h
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2011-07-02 23:09:59 +0200
committerMichal Schmidt <mschmidt@redhat.com>2011-07-03 00:12:16 +0200
commit52c002150a34c07a59369ee952bcd3a1f8f316ca (patch)
tree8bf5fb00378c1d38e5a5a31abfa46626941cdb67 /src/shutdownd.h
parentshutdown: accept minutes argument without '+' (diff)
downloadsystemd-52c002150a34c07a59369ee952bcd3a1f8f316ca.tar.xz
systemd-52c002150a34c07a59369ee952bcd3a1f8f316ca.zip
shutdown: respect the dry run option '-k'
Don't do the actual power-off/reboot when '-k' is passed to shutdown. Related to: https://bugzilla.redhat.com/show_bug.cgi?id=624149
Diffstat (limited to 'src/shutdownd.h')
-rw-r--r--src/shutdownd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shutdownd.h b/src/shutdownd.h
index ed8a704b1c..4581649733 100644
--- a/src/shutdownd.h
+++ b/src/shutdownd.h
@@ -33,6 +33,7 @@ _packed_ struct shutdownd_command {
char mode; /* H, P, r, i.e. the switches usually passed to
* shutdown to select whether to halt, power-off or
* reboot the machine */
+ bool dry_run;
bool warn_wall;
/* Yepp, sometimes we are lazy and use fixed-size strings like