Modify the net-ipmid recipe to support systemd socket activation

Resolves openbmc/openbmc#914

Change-Id: I5cb697cbc3b7a33188abe392bef2202b84bcef0c
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/meta-phosphor/common/recipes-phosphor/net-ipmid/phosphor-net-ipmid.bb b/meta-phosphor/common/recipes-phosphor/net-ipmid/phosphor-net-ipmid.bb
index 7331957..3ca80ce 100644
--- a/meta-phosphor/common/recipes-phosphor/net-ipmid/phosphor-net-ipmid.bb
+++ b/meta-phosphor/common/recipes-phosphor/net-ipmid/phosphor-net-ipmid.bb
@@ -21,4 +21,7 @@
 
 S = "${WORKDIR}/git"
 
-SYSTEMD_SERVICE_${PN} = "${PN}.service"
+SYSTEMD_SERVICE_${PN} = " \
+        ${PN}.service \
+        ${PN}.socket \
+        "
diff --git a/meta-phosphor/common/recipes-phosphor/net-ipmid/phosphor-net-ipmid/phosphor-net-ipmid.socket b/meta-phosphor/common/recipes-phosphor/net-ipmid/phosphor-net-ipmid/phosphor-net-ipmid.socket
new file mode 100644
index 0000000..077b780
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/net-ipmid/phosphor-net-ipmid/phosphor-net-ipmid.socket
@@ -0,0 +1,6 @@
+[Socket]
+ListenDatagram=623
+
+[Install]
+WantedBy=sockets.target
+