chiark / gitweb /
logind: add support for /run/nologin and /run/systemd/shutdown/scheduled
authorDaniel Mack <daniel@zonque.org>
Thu, 23 Apr 2015 15:11:28 +0000 (17:11 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 07:12:03 +0000 (08:12 +0100)
commit622b8f413a68c467207fec45148c9f397834f610
tree8c3a7ac6469adab8ddc81110ea97193fb34c8eba
parent4621cace7cbcc1de2c80ad3850df909df1f7e0ae
logind: add support for /run/nologin and /run/systemd/shutdown/scheduled

Port over more code from shutdownd and teach logind to write /run/nologin at
least 5 minutes before the system is going down, and
/run/systemd/shutdown/scheduled when a shutdown is scheduled.
src/login/logind-dbus.c
src/login/logind.c
src/login/logind.h