From 221ff66327fbbe0a0b2243e9b61626f9fdd31da8 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 20 Sep 2012 15:59:05 +0200 Subject: systemd: Add service units for the BSC, NITB and MGCP Add simple systemd service units. --- openbsc/contrib/systemd/osmo-bsc-mgcp.service | 9 +++++++++ openbsc/contrib/systemd/osmo-bsc.service | 10 ++++++++++ openbsc/contrib/systemd/osmo-nitb.service | 9 +++++++++ 3 files changed, 28 insertions(+) create mode 100644 openbsc/contrib/systemd/osmo-bsc-mgcp.service create mode 100644 openbsc/contrib/systemd/osmo-bsc.service create mode 100644 openbsc/contrib/systemd/osmo-nitb.service (limited to 'openbsc/contrib') diff --git a/openbsc/contrib/systemd/osmo-bsc-mgcp.service b/openbsc/contrib/systemd/osmo-bsc-mgcp.service new file mode 100644 index 000000000..b5e8ec3d0 --- /dev/null +++ b/openbsc/contrib/systemd/osmo-bsc-mgcp.service @@ -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 diff --git a/openbsc/contrib/systemd/osmo-bsc.service b/openbsc/contrib/systemd/osmo-bsc.service new file mode 100644 index 000000000..772d472a3 --- /dev/null +++ b/openbsc/contrib/systemd/osmo-bsc.service @@ -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 diff --git a/openbsc/contrib/systemd/osmo-nitb.service b/openbsc/contrib/systemd/osmo-nitb.service new file mode 100644 index 000000000..203aeb15c --- /dev/null +++ b/openbsc/contrib/systemd/osmo-nitb.service @@ -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 -- cgit v1.2.3