osmo-iuh: Add service file with startup fix

osmo-hnbgw sometimes starts too fast after msc/sgsn and then does not
reconnect. Fix this for now by sleeping before startup.
diff --git a/recipes-osmocom/osmo-iuh/osmo-iuh.inc b/recipes-osmocom/osmo-iuh/osmo-iuh.inc
index ca0c563..f1ce1ea 100644
--- a/recipes-osmocom/osmo-iuh/osmo-iuh.inc
+++ b/recipes-osmocom/osmo-iuh/osmo-iuh.inc
@@ -4,7 +4,8 @@
 LICENSE = "AGPLv3+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
 
-SRC_URI = "file://osmo-hnbgw.init"
+SRC_URI = "file://osmo-hnbgw.init \
+	   file://osmo-hnbgw.service"
 
 INC_PR = "r1.${META_TELEPHONY_OSMO_INC}"
 
@@ -32,6 +33,8 @@
 		install -m 0644 ${S}/contrib/systemd/$i ${D}${systemd_unitdir}/system/
 	done
 
+	install -m 0644 ${WORKDIR}/osmo-hnbgw.service ${D}${systemd_unitdir}/system/
+
 	install -d ${D}/var/lib/osmocom
 }
 
diff --git a/recipes-osmocom/osmo-iuh/osmo-iuh/osmo-hnbgw.service b/recipes-osmocom/osmo-iuh/osmo-iuh/osmo-hnbgw.service
new file mode 100644
index 0000000..13517fb
--- /dev/null
+++ b/recipes-osmocom/osmo-iuh/osmo-iuh/osmo-hnbgw.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Osmocom Home Nodeb Gateway (OsmoHNBGW)
+After=osmo-msc.service
+Wants=osmo-msc.service 
+After=osmo-sgsn.service
+Wants=osmo-sgsn.service
+
+[Service]
+Type=simple
+Restart=always
+ExecStartPre=/bin/sleep 5
+ExecStart=/usr/bin/osmo-hnbgw -c /etc/osmocom/osmo-hnbgw.cfg
+RestartSec=2
+
+[Install]
+WantedBy=multi-user.target
diff --git a/recipes-osmocom/osmo-iuh/osmo-iuh_git.bb b/recipes-osmocom/osmo-iuh/osmo-iuh_git.bb
index 6656c84..1ae0314 100644
--- a/recipes-osmocom/osmo-iuh/osmo-iuh_git.bb
+++ b/recipes-osmocom/osmo-iuh/osmo-iuh_git.bb
@@ -2,7 +2,7 @@
 
 PV = "0.1.0+gitr${SRCPV}"
 PRINC = "0"
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
 
 SRCREV = "26531f9efc3a7366ef26e11855bc8ad46e9f8794"
 SRC_URI += "git://git.osmocom.org/osmo-iuh.git;protocol=git"