MSC: use systemd dropin override
Use override file instead of writing the unit service file directly.
This commit is contained in:
parent
3f437e3c6a
commit
680e0b53e2
2 changed files with 8 additions and 4 deletions
3
modules/rhizo_base/files/systemd/osmo-msc.override
Normal file
3
modules/rhizo_base/files/systemd/osmo-msc.override
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[Service]
|
||||||
|
ExecStart=
|
||||||
|
ExecStart=/usr/bin/osmo-msc -c /etc/osmocom/osmo-msc.cfg -l /var/lib/osmocom/sms.db
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
class rhizo_base::osmocom {
|
class rhizo_base::osmocom {
|
||||||
|
|
||||||
|
include systemd
|
||||||
$network_name = $rhizo_base::network_name
|
$network_name = $rhizo_base::network_name
|
||||||
$mcc = $rhizo_base::mcc
|
$mcc = $rhizo_base::mcc
|
||||||
$mnc = $rhizo_base::mnc
|
$mnc = $rhizo_base::mnc
|
||||||
|
@ -131,9 +132,9 @@ class rhizo_base::osmocom {
|
||||||
require => Package['osmo-sip-connector'],
|
require => Package['osmo-sip-connector'],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/lib/systemd/system/osmo-msc.service':
|
systemd::dropin_file { 'override.conf':
|
||||||
ensure => present,
|
unit => 'osmo-msc.service',
|
||||||
source => 'puppet:///modules/rhizo_base/systemd/osmo-msc.service',
|
source => 'puppet:///modules/rhizo_base/systemd/osmo-msc.override'
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/lib/systemd/system/osmo-mgw-msc.service':
|
file { '/lib/systemd/system/osmo-mgw-msc.service':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue