summaryrefslogtreecommitdiff
path: root/src/shutdownd.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-16 19:26:27 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-16 19:26:27 +0200
commit9be9828c00449e3cab77aaea8359de61e793cc28 (patch)
treea0f8a28fc82183252739994a5d3246409eebaceb /src/shutdownd.h
parent6b5ad000aba61a5312b5c3fac7dd85a0d33816af (diff)
systemctl: warn in intervals before going down when delayed shutdown is used
Diffstat (limited to 'src/shutdownd.h')
-rw-r--r--src/shutdownd.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/shutdownd.h b/src/shutdownd.h
index d298b01c92..ed8a704b1c 100644
--- a/src/shutdownd.h
+++ b/src/shutdownd.h
@@ -25,11 +25,21 @@
#include "util.h"
#include "macro.h"
+/* This is a private message, we don't care much about ABI
+ * stability. */
+
_packed_ struct shutdownd_command {
usec_t elapse;
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 warn_wall;
+
+ /* Yepp, sometimes we are lazy and use fixed-size strings like
+ * this one. Shame on us. But then again, we'd have to
+ * pre-allocate the receive buffer anyway, so there's nothing
+ * too bad here. */
+ char wall_message[4096];
};
#endif