[MERGED] osmo-bts[master]: Use systemd template specifiers

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Jun 14 13:15:38 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: Use systemd template specifiers
......................................................................


Use systemd template specifiers

Use systemd template specifier for config name instead of hardcoding
it. This will allow to specify different config file name depending on
the name of the service file.

By default sysmobts-mgr.cfg will be used preserving compatibilty with
existing installations but if the unit is named lc15bts-mgr.service than
lc15bts-mgr.cfg will be used. This gives us necessary flexibility to use
BTS-specific configuration.

Change-Id: I475df6a06691390120eea0bd8a61fa469df2bd2d
Related: SYS#3686
---
M contrib/sysmobts-mgr.service
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/contrib/sysmobts-mgr.service b/contrib/sysmobts-mgr.service
index 4a15bd8..182e306 100644
--- a/contrib/sysmobts-mgr.service
+++ b/contrib/sysmobts-mgr.service
@@ -1,9 +1,9 @@
 [Unit]
-Description=sysmocom sysmoBTS manager
+Description=sysmocom %p manager
 
 [Service]
 Type=simple
-ExecStart=/usr/bin/sysmobts-mgr -ns -c /etc/osmocom/sysmobts-mgr.cfg
+ExecStart=/usr/bin/sysmobts-mgr -ns -c /etc/osmocom/%p.cfg
 Restart=always
 RestartSec=2
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I475df6a06691390120eea0bd8a61fa469df2bd2d
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list