chiark / gitweb /
initctl: support 'telinit u/q'
authorTom Gundersen <teg@jklm.no>
Sat, 30 Jul 2011 16:23:10 +0000 (18:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 1 Aug 2011 21:22:24 +0000 (23:22 +0200)
commit46e964c5ce20ce4b46b9187376057081eb71bc55
tree1ff87020d889ce0fb24eb2c5ae927edd402b095f
parentcc9784c6d12b1ee73dae22b86c3aac1d08346623
initctl: support 'telinit u/q'

We send SIGTERM (resp., SIGHUP) when we receive request for changing to
runlevel 'u' (resp., 'q').

As initctl is already async, we just send the signals rather than first
attempting to connect to sytemd over dbus and then falling back to kill.
src/initctl.c