aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-06-14 13:32:11 +0200
committerMax <msuraev@sysmocom.de>2017-06-14 13:32:11 +0200
commit16b8f51839d419d7cd3933af1c21521e1e13a940 (patch)
treed8a4709d6f473ec27d1b1c0fbec8cd42345b795f
parent0e7886d37957dacec7831b8a8fc337beeb7b0907 (diff)
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
-rw-r--r--contrib/sysmobts-mgr.service4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/sysmobts-mgr.service b/contrib/sysmobts-mgr.service
index 4a15bd8d..182e306b 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