Selectively enable/disable kannel/esme

Note that a repo refresh of rccn will trigger and esme-restart
but if we are using kannel the link in /etc/service will not exist
so there will be no restart.
This commit is contained in:
Wile E. Coyote 2018-11-18 13:13:20 +00:00
parent 01908da55d
commit 0c8f78698a
2 changed files with 42 additions and 2 deletions

View file

@ -263,7 +263,8 @@ schedule { 'repo':
notify => [ Exec['locale-gen'],
Exec['notify-freeswitch'],
Exec['restart-rapi'],
Exec['restart-smpp'] ],
Exec['restart-smpp'],
Exec['restart-esme'] ],
}
vcsrepo { '/var/meas_web':
@ -351,6 +352,10 @@ schedule { 'repo':
refreshonly => true,
}
exec { 'restart-esme':
command => '/usr/bin/sv restart esme',
refreshonly => true,
}
if $operatingsystem == 'Ubuntu' {
file { '/var/lib/locales/supported.d/local':