Added runit scripts.
This commit is contained in:
parent
ce9af69207
commit
4d2574d302
7 changed files with 43 additions and 5 deletions
4
modules/rhizomatica_base_system/files/etc/sv/freeswitch/log/run
Executable file
4
modules/rhizomatica_base_system/files/etc/sv/freeswitch/log/run
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
LOG_FOLDER=/var/log/freeswitch
|
||||||
|
mkdir -p $LOG_FOLDER
|
||||||
|
exec svlogd -tt $LOG_FOLDER
|
8
modules/rhizomatica_base_system/files/etc/sv/freeswitch/run
Executable file
8
modules/rhizomatica_base_system/files/etc/sv/freeswitch/run
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#restarting postgres to make sure that RCCN connects to it, sleeping just to be sure that it's up :)
|
||||||
|
#/etc/init.d/postgresql restart
|
||||||
|
#/bin/sleep 10
|
||||||
|
#exec 2>&1
|
||||||
|
export PYTHONPATH=$PYTHONPATH:/var/rhizomatica/rccn
|
||||||
|
#exec /usr/local/freeswitch/bin/freeswitch
|
||||||
|
exec /usr/bin/freeswitch
|
4
modules/rhizomatica_base_system/files/etc/sv/osmo-nitb/log/run
Executable file
4
modules/rhizomatica_base_system/files/etc/sv/osmo-nitb/log/run
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
LOG_FOLDER=/var/log/osmo-nitb
|
||||||
|
mkdir -p $LOG_FOLDER
|
||||||
|
exec svlogd -tt $LOG_FOLDER
|
8
modules/rhizomatica_base_system/files/etc/sv/osmo-nitb/run
Executable file
8
modules/rhizomatica_base_system/files/etc/sv/osmo-nitb/run
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
ulimit -c unlimited
|
||||||
|
/etc/init.d/kannel stop
|
||||||
|
sleep 5
|
||||||
|
/usr/bin/killall -9 run_kannel_box bearerbox smsbox
|
||||||
|
/etc/init.d/kannel start
|
||||||
|
exec 2>&1
|
||||||
|
exec chrt 10 /usr/bin/osmo-nitb -P -m -c /etc/osmocom/osmo-nitb.cfg -l /var/lib/osmocom/hlr.sqlite3
|
4
modules/rhizomatica_base_system/files/etc/sv/rapi/log/run
Executable file
4
modules/rhizomatica_base_system/files/etc/sv/rapi/log/run
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
LOG_FOLDER=/var/log/rapi
|
||||||
|
mkdir -p $LOG_FOLDER
|
||||||
|
exec svlogd -tt $LOG_FOLDER
|
4
modules/rhizomatica_base_system/files/etc/sv/rapi/run
Executable file
4
modules/rhizomatica_base_system/files/etc/sv/rapi/run
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
export PYTHONPATH=$PYTHONPATH:/var/rhizomatica/rccn
|
||||||
|
#cd /var/rhizomatica/rccn ; python rapi.py debug
|
||||||
|
python /var/rhizomatica/rccn/rapi.py debug
|
|
@ -18,9 +18,13 @@ class rhizomatica_base_system {
|
||||||
$kannel_admin_password = ('rhizo::kannel_admin_password')
|
$kannel_admin_password = ('rhizo::kannel_admin_password')
|
||||||
$kannel_sendsms_password = hiera('rhizo::kannel_sendsms_password')
|
$kannel_sendsms_password = hiera('rhizo::kannel_sendsms_password')
|
||||||
|
|
||||||
|
|
||||||
include 'ntp'
|
include 'ntp'
|
||||||
include 'kannel'
|
include 'kannel'
|
||||||
|
|
||||||
|
file { '/etc/apt/apt.conf.d/90unsigned':
|
||||||
|
ensure => present,
|
||||||
|
content => 'APT::Get::AllowUnauthenticated "true";',
|
||||||
|
}
|
||||||
|
|
||||||
class { 'apt': }
|
class { 'apt': }
|
||||||
|
|
||||||
|
@ -41,10 +45,6 @@ class rhizomatica_base_system {
|
||||||
require => File['/etc/apt/apt.conf.d/90unsigned'],
|
require => File['/etc/apt/apt.conf.d/90unsigned'],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/apt/apt.conf.d/90unsigned':
|
|
||||||
ensure => present,
|
|
||||||
content => 'APT::Get::AllowUnauthenticated "true";',
|
|
||||||
}
|
|
||||||
|
|
||||||
# file { '/var/rhizomatica':
|
# file { '/var/rhizomatica':
|
||||||
# ensure => directory,
|
# ensure => directory,
|
||||||
|
@ -71,6 +71,12 @@ class rhizomatica_base_system {
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { '/etc/sv':
|
||||||
|
ensure => directory,
|
||||||
|
source => "puppet:///modules/rhizomatica_base_system/etc/sv",
|
||||||
|
recurse => true,
|
||||||
|
}
|
||||||
|
|
||||||
package { 'mosh':
|
package { 'mosh':
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
require => Apt::Source['mosh'],
|
require => Apt::Source['mosh'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue