9
0
Fork 0

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
This commit is contained in:
Holger Hans Peter Freyther 2016-08-15 11:35:52 +02:00
parent f3afabe989
commit b1d46b4488
2 changed files with 12 additions and 1 deletions

2
debian/control vendored
View File

@ -2,7 +2,7 @@ Source: cellmgr-ng
Section: net
Priority: optional
Maintainer: Holger Hans Peter Freyther <holger@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

11
debian/osmo-stp.service vendored Normal file
View File

@ -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