rhizo_base: Ensure runit installed before using runit

Make sure that runit is installed and configured before attempting to
restart services using /usr/bin/sv (aka runit).
This commit is contained in:
Matt Johnson 2019-07-14 23:27:20 -05:00 committed by Keith Whyte
parent 633c08fcf5
commit 439489b42b
2 changed files with 6 additions and 0 deletions

View file

@ -398,26 +398,31 @@ schedule { 'repo':
exec { 'restart-freeswitch':
command => '/usr/bin/sv restart freeswitch',
require => Class['rhizo_base::runit'],
refreshonly => true,
}
exec { 'restart-rapi':
command => '/usr/bin/sv restart rapi',
require => Class['rhizo_base::runit'],
refreshonly => true,
}
exec { 'restart-smpp':
command => '/usr/bin/sv restart smpp',
require => Class['rhizo_base::runit'],
refreshonly => true,
}
exec { 'restart-meas':
command => '/usr/bin/sv restart meas-web',
require => Class['rhizo_base::runit'],
refreshonly => true,
}
exec { 'restart-esme':
command => '/usr/bin/sv restart esme',
require => Class['rhizo_base::runit'],
refreshonly => true,
}