]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/logind-dbus.c
logind: add code for UTMP wall messages
authorDaniel Mack <daniel@zonque.org>
Wed, 22 Apr 2015 15:20:42 +0000 (17:20 +0200)
committerDaniel Mack <daniel@zonque.org>
Fri, 24 Apr 2015 15:48:12 +0000 (17:48 +0200)
commite2fa5721c3ee5ea400b99a6463e8c1c257e20415
tree412e7536125265bd4ab53886ecbaa9e47715380b
parent99f710dde855f7ecb699ddac6ad77923c1f6bc85
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.
Makefile.am
src/login/logind-dbus.c
src/login/logind-utmp.c [new file with mode: 0644]
src/login/logind.c
src/login/logind.h