From cfc052743ba937fb47817af0eb5bc387447db2f8 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 6 Sep 2018 12:32:16 +0200 Subject: [PATCH] Move systemd service to contrib/systemd Move it there and have only a symlink in debian/, like we do in all other projects. Change-Id: I213d3816a66e88069c31f85b3fbf462d1222aa43 --- contrib/systemd/osmo-bts-trx.service | 15 +++++++++++++++ contrib/systemd/osmo-bts-virtual.service | 15 +++++++++++++++ debian/osmo-bts-trx.service | 16 +--------------- debian/osmo-bts-virtual.service | 16 +--------------- 4 files changed, 32 insertions(+), 30 deletions(-) create mode 100644 contrib/systemd/osmo-bts-trx.service create mode 100644 contrib/systemd/osmo-bts-virtual.service mode change 100644 => 120000 debian/osmo-bts-trx.service mode change 100644 => 120000 debian/osmo-bts-virtual.service diff --git a/contrib/systemd/osmo-bts-trx.service b/contrib/systemd/osmo-bts-trx.service new file mode 100644 index 000000000..cea8719c1 --- /dev/null +++ b/contrib/systemd/osmo-bts-trx.service @@ -0,0 +1,15 @@ +[Unit] +Description=Osmocom osmo-bts for osmo-trx + +[Service] +Type=simple +ExecStart=/usr/bin/osmo-bts-trx -s -c /etc/osmocom/osmo-bts.cfg +Restart=always +RestartSec=2 + +# Let it process messages quickly enough +CPUSchedulingPolicy=rr +CPUSchedulingPriority=1 + +[Install] +WantedBy=multi-user.target diff --git a/contrib/systemd/osmo-bts-virtual.service b/contrib/systemd/osmo-bts-virtual.service new file mode 100644 index 000000000..16332669c --- /dev/null +++ b/contrib/systemd/osmo-bts-virtual.service @@ -0,0 +1,15 @@ +[Unit] +Description=Osmocom GSM BTS for virtual Um layer based on GSMTAP/UDP + +[Service] +Type=simple +ExecStart=/usr/bin/osmo-bts-virtual -s -c /etc/osmocom/osmo-bts-virtual.cfg +Restart=always +RestartSec=2 + +# Let it process messages quickly enough +CPUSchedulingPolicy=rr +CPUSchedulingPriority=1 + +[Install] +WantedBy=multi-user.target diff --git a/debian/osmo-bts-trx.service b/debian/osmo-bts-trx.service deleted file mode 100644 index cea8719c1..000000000 --- a/debian/osmo-bts-trx.service +++ /dev/null @@ -1,15 +0,0 @@ -[Unit] -Description=Osmocom osmo-bts for osmo-trx - -[Service] -Type=simple -ExecStart=/usr/bin/osmo-bts-trx -s -c /etc/osmocom/osmo-bts.cfg -Restart=always -RestartSec=2 - -# Let it process messages quickly enough -CPUSchedulingPolicy=rr -CPUSchedulingPriority=1 - -[Install] -WantedBy=multi-user.target diff --git a/debian/osmo-bts-trx.service b/debian/osmo-bts-trx.service new file mode 120000 index 000000000..1abb0cea6 --- /dev/null +++ b/debian/osmo-bts-trx.service @@ -0,0 +1 @@ +../contrib/systemd/osmo-bts-trx.service \ No newline at end of file diff --git a/debian/osmo-bts-virtual.service b/debian/osmo-bts-virtual.service deleted file mode 100644 index 16332669c..000000000 --- a/debian/osmo-bts-virtual.service +++ /dev/null @@ -1,15 +0,0 @@ -[Unit] -Description=Osmocom GSM BTS for virtual Um layer based on GSMTAP/UDP - -[Service] -Type=simple -ExecStart=/usr/bin/osmo-bts-virtual -s -c /etc/osmocom/osmo-bts-virtual.cfg -Restart=always -RestartSec=2 - -# Let it process messages quickly enough -CPUSchedulingPolicy=rr -CPUSchedulingPriority=1 - -[Install] -WantedBy=multi-user.target diff --git a/debian/osmo-bts-virtual.service b/debian/osmo-bts-virtual.service new file mode 120000 index 000000000..9a660b441 --- /dev/null +++ b/debian/osmo-bts-virtual.service @@ -0,0 +1 @@ +../contrib/systemd/osmo-bts-virtual.service \ No newline at end of file