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
This commit is contained in:
Max 2017-06-14 13:32:11 +02:00
parent 0e7886d379
commit 16b8f51839
1 changed files with 2 additions and 2 deletions

View File

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