osmocom-3g: Update the service files to fix any startup issues

These services bind to IP addresses so networking needs to be up so add
it as dependency
This commit is contained in:
Daniel Willmann 2017-08-01 03:39:11 +02:00 committed by Daniel Willmann
parent 631c339d7a
commit 67d3621a4a
4 changed files with 44 additions and 4 deletions

View File

@ -10,7 +10,7 @@ SRC_URI = "file://osmo-msc.init \
file://osmo-bsc_mgcp.init \
file://osmo-sgsn.init"
INC_PR = "r1.${META_TELEPHONY_OSMO_INC}"
INC_PR = "r2.${META_TELEPHONY_OSMO_INC}"
EXTRA_OECONF += " --enable-iu --enable-smpp --enable-mgcp-transcoding --with-g729"
@ -37,9 +37,9 @@ do_install_append() {
# Install systemd files and enable on sysinit
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${S}/contrib/systemd/osmo-msc.service ${D}${systemd_unitdir}/system/
install -m 0644 ${S}/contrib/systemd/osmo-sgsn.service ${D}${systemd_unitdir}/system/
install -m 0644 ${S}/contrib/systemd/osmo-bsc-mgcp.service ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/osmo-msc.service ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/osmo-sgsn.service ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/osmo-bsc-mgcp.service ${D}${systemd_unitdir}/system/
install -d ${D}/var/lib/osmocom
}

View File

@ -0,0 +1,12 @@
[Unit]
Description=OpenBSC MGCP
After=networking.service
[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/osmo-bsc_mgcp -s -c /etc/osmocom/osmo-bsc-mgcp.cfg
RestartSec=2
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,14 @@
[Unit]
Description=Osmocom Mobile Switching Center (MSC)
Wants=osmo-hlr.service
After=osmo-hlr.service
After=networking.service
[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/osmo-msc -c /etc/osmocom/osmo-msc.cfg
RestartSec=2
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,14 @@
[Unit]
Description=OpenBSC SGSN
Wants=osmo-hlr.service
After=osmo-hlr.service
After=networking.service
[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/osmo-sgsn -c /etc/osmocom/osmo-sgsn.cfg
RestartSec=2
[Install]
WantedBy=multi-user.target