chiark / gitweb /
logind: add code for UTMP wall messages
authorDaniel Mack <daniel@zonque.org>
Wed, 22 Apr 2015 15:20:42 +0000 (17:20 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 07:09:41 +0000 (08:09 +0100)
commit4a91795b56e8e4358f7463f40b45ee4ee593d99c
tree12ad46795a223defd388653be7f1ded3fa87bd98
parent7168106367493a7610a4c06634725c40a3548be0
logind: add code for UTMP wall messages

Add a timer to print UTMP wall messages so that it repeatedly informs users
about a scheduled shutdown:

 * every 1 minute with less than 10 minutes to go
 * every 15 minutes with less than 60 minutes to go
 * every 30 minutes with less than 180 minutes (3 hours) to go
 * every 60 minutes if more than that to go

This functionality only active if the .EnableWallMessages DBus property
is set to true. Also, a custom string can be added to the wall message,
set through the WallMessagePrefix property.
src/login/logind-dbus.c
src/login/logind-utmp.c [new file with mode: 0644]
src/login/logind.c
src/login/logind.h