Support systemd socket activation
Check if systemd passed us a socket when starting obmc-console before
creating the socket ourselves. This will support use cases where we
don't need obmc-console until a SoL is activated by the user.
Tested: Verified that existing unit file installation is unchanged -
statically enabled obmc-console@.service instances will be started.
Then disabled obmc-console@ttyS2.service and enabled
obmc-console@ttyS2.socket (with a drop-in change to override
ListenStream to "obmc-console") and verifed that activating Redfish and
SSH SoL would start obmc-console@ttyS2.service and console redirection
worked.
Change-Id: I42e96af46a5893145abf27761e97fd4f1b73719d
Signed-off-by: Jonathan Doman <jonathan.doman@intel.com>
diff --git a/configure.ac b/configure.ac
index 045ea36..6b0fb98 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,6 +74,7 @@
conf/80-obmc-console-uart.rules
conf/client.2200.conf
conf/obmc-console@.service
+ conf/obmc-console@.socket
conf/obmc-console-ssh@.service
conf/obmc-console-ssh@.service.d/use-socket.conf
conf/obmc-console-ssh.socket