[PATCH] 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/.

Max gerrit-no-reply at lists.osmocom.org
Wed Jun 14 11:36:13 UTC 2017


Review at  https://gerrit.osmocom.org/2911

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(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/11/2911/1

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: newchange
Gerrit-Change-Id: I475df6a06691390120eea0bd8a61fa469df2bd2d
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list