systemd: Add service units for the BSC, NITB and MGCP

Add simple systemd service units.
This commit is contained in:
Holger Hans Peter Freyther 2012-09-20 15:59:05 +02:00
parent bf0a7c97be
commit 221ff66327
3 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,9 @@
[Unit]
Description=OpenBSC MGCP
[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/osmo-bsc_mgcp -c /etc/osmocom/osmo-bsc-mgcp.cfg
Restart=always
RestartSec=2

View File

@ -0,0 +1,10 @@
[Unit]
Description=OpenBSC BSC
Requires=osmo-bsc-mgcp.service
[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/osmo-bsc -c /etc/osmocom/osmo-bsc.cfg -s
Restart=always
RestartSec=2

View File

@ -0,0 +1,9 @@
[Unit]
Description=OpenBSC Network In the Box (NITB)
[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/osmo-nitb -s -C -c /etc/osmocom/osmo-nitb.cfg -l /var/lib/osmocom/hlr.sqlite3
Restart=always
RestartSec=2