From 16b8f51839d419d7cd3933af1c21521e1e13a940 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 14 Jun 2017 13:32:11 +0200 Subject: 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 --- contrib/sysmobts-mgr.service | 4 ++-- 1 file 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 -- cgit v1.2.3