chiark / gitweb /
machinectl: reimplement machinectl's "reboot" verb on top of "kill", and add new...
authorLennart Poettering <lennart@poettering.net>
Tue, 18 Mar 2014 03:44:39 +0000 (04:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 18 Mar 2014 03:48:26 +0000 (04:48 +0100)
commit1dba654b27918c22e413ac5b3c19301f1ff86ad2
tree93e2ac845e4edebf7a1cf805a6decd1518630321
parentde58a50e24a0d55e3bbcc77f8f6170a7322acf52
machinectl: reimplement machinectl's "reboot" verb on top of "kill", and add new verb "poweroff"

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!
man/machinectl.xml
src/machine/machinectl.c