logind/systemctl: introduce SetWallMessage and --message
authorJan Synacek <jsynacek@redhat.com>
Mon, 24 Aug 2015 12:54:22 +0000 (14:54 +0200)
committerJan Synacek <jsynacek@redhat.com>
Tue, 25 Aug 2015 11:52:44 +0000 (13:52 +0200)
commit9ef15026c0e7e6600372056c43442c99ec53746e
tree7b82f423cb3499c100c1d2a2b5540d336d4928f9
parent72aa2c2a2083362afda9f09805563848d54e31df
logind/systemctl: introduce SetWallMessage and --message

Enable unprivileged users to set wall message on a shutdown
operation. When the message is set via the --message option,
it is logged together with the default shutdown message.

$ systemctl reboot --message "Applied kernel updates."

$ journalctl -b -1
...
systemd-logind[27]: System is rebooting. (Applied kernel updates.)
...
man/systemctl.xml
src/login/logind-dbus.c
src/login/org.freedesktop.login1.conf
src/login/org.freedesktop.login1.policy.in
src/systemctl/systemctl.c