machinectl: reimplement machinectl's "reboot" verb on top of "kill", and add new verb "poweroff"

System Internals / systemd - Lennart Poettering [poettering.net] - 17 March 2014 22:48 UTC

There's really no point to send the reboot SIGINT from machinectl directly, if machined can do that anyway. This saves code, and makes machinectl network transparent for these verbs. And while we are at it we can easily add a "poweroff" verb in addition to "reboot". Yay!

1dba654 machinectl: reimplement machinectl's "reboot" verb on top of "kill", and add new verb "poweroff"
man/machinectl.xml | 72 ++++++++++++++++++++++++---------------
src/machine/machinectl.c | 85 +++++++++++-----------------------------------
2 files changed, 64 insertions(+), 93 deletions(-)

Upstream: github.com


  • Share