summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Undheim <ruben.undheim@gmail.com>2018-10-02 07:48:16 +0200
committerRuben Undheim <ruben.undheim@gmail.com>2018-10-02 07:48:16 +0200
commit0fa8447c1b0e33c12e72e5b12e7e000b9573baef (patch)
treef97b4f0ec5b818ceab7bd56af0e84c9c88adcd2d
parent2ebe9e4b64d42b8a55fd9c5b427d6dd7256a56ae (diff)
Install simple default config and service file. Do not start service automatically
-rw-r--r--debian/osmo-hnbgw.cfg4
-rw-r--r--debian/osmo-hnbgw.install1
-rw-r--r--debian/osmo-hnbgw.service11
-rwxr-xr-xdebian/rules3
4 files changed, 19 insertions, 0 deletions
diff --git a/debian/osmo-hnbgw.cfg b/debian/osmo-hnbgw.cfg
new file mode 100644
index 0000000..977c3c0
--- /dev/null
+++ b/debian/osmo-hnbgw.cfg
@@ -0,0 +1,4 @@
+hnbgw
+ iuh
+ local-ip 127.0.0.1
+ hnbap-allow-tmsi 1
diff --git a/debian/osmo-hnbgw.install b/debian/osmo-hnbgw.install
index e230915..ca6967e 100644
--- a/debian/osmo-hnbgw.install
+++ b/debian/osmo-hnbgw.install
@@ -1,2 +1,3 @@
usr/bin/osmo-hnbgw
usr/share/doc/osmo-iuh/examples/osmo-hnbgw.cfg
+debian/osmo-hnbgw.cfg etc/osmocom/
diff --git a/debian/osmo-hnbgw.service b/debian/osmo-hnbgw.service
new file mode 100644
index 0000000..7aca29f
--- /dev/null
+++ b/debian/osmo-hnbgw.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Osmocom Home Nodeb Gateway (OsmoHNBGW)
+
+[Service]
+Type=simple
+Restart=always
+ExecStart=/usr/bin/osmo-hnbgw -c /etc/osmocom/osmo-hnbgw.cfg
+RestartSec=2
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/rules b/debian/rules
index f80675b..6c9f3f1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,3 +15,6 @@
# Print test results in case of a failure
override_dh_auto_test:
dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false)
+
+override_dh_installsystemd:
+ dh_installsystemd --no-enable --no-start