[MERGED] cellmgr-ng[master]: debian: Add systemd service file

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Holger Freyther gerrit-no-reply at lists.osmocom.org
Mon Aug 15 11:45:24 UTC 2016


Holger Freyther has submitted this change and it was merged.

Change subject: debian: Add systemd service file
......................................................................


debian: Add systemd service file

Provide a modern systemd service file for the osmo-stp. The sysvinit
file is quite basic and doesn't signal syntax errors nicely. Let us
embrace the future.

Change-Id: Ic0cc0f17d442aa0ad38de9f0cf8aeb14121938de
---
M debian/control
A debian/osmo-stp.service
2 files changed, 12 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  Holger Freyther: Looks good to me, approved



diff --git a/debian/control b/debian/control
index 6d23a4e..0f4c286 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@
 Section: net
 Priority: optional
 Maintainer: Holger Hans Peter Freyther <holger at freyther.de>
-Build-Depends: debhelper (>= 9), autotools-dev, pkg-config, libosmocore-dev, libosmo-sccp-dev, dh-autoreconf, libsnmp-dev, libsctp-dev
+Build-Depends: debhelper (>= 9), autotools-dev, pkg-config, libosmocore-dev, libosmo-sccp-dev, dh-autoreconf, dh-systemd (>= 1.5), libsnmp-dev, libsctp-dev
 Standards-Version: 3.9.6
 Homepage: http://openbsc.osmocom.org/
 Vcs-Git: git://bs11-abis.gnumonks.org/cellmgr-ng.git
diff --git a/debian/osmo-stp.service b/debian/osmo-stp.service
new file mode 100644
index 0000000..cef1085
--- /dev/null
+++ b/debian/osmo-stp.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Osmocom osmo-stp bridge
+
+[Service]
+Type=simple
+ExecStart=/usr/sbin/osmo-stp -c /etc/osmocom/osmo-stp.cfg
+Restart=always
+RestartSec=2
+
+[Install]
+WantedBy=multi-user.target

-- 
To view, visit https://gerrit.osmocom.org/695
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic0cc0f17d442aa0ad38de9f0cf8aeb14121938de
Gerrit-PatchSet: 3
Gerrit-Project: cellmgr-ng
Gerrit-Branch: master
Gerrit-Owner: Holger Freyther <holger at freyther.de>
Gerrit-Reviewer: Holger Freyther <holger at freyther.de>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list