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:
parent
633c08fcf5
commit
439489b42b
2 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ class rhizo_base::lcr {
|
|||
|
||||
exec { 'restart-lcr':
|
||||
command => '/usr/bin/sv restart lcr',
|
||||
require => Class['rhizo_base::runit'],
|
||||
refreshonly => true,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue