SMS: Add a switch to use_kannel (or not)
If we don't use kannel, then create the runit link in /etc/service to run the python esme.
This commit is contained in:
parent
44fff5a761
commit
7d506eb4be
7 changed files with 37 additions and 0 deletions
4
modules/rhizo_base/files/etc/sv/esme/log/run
Executable file
4
modules/rhizo_base/files/etc/sv/esme/log/run
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
LOG_FOLDER=/var/log/esme
|
||||
mkdir -p $LOG_FOLDER
|
||||
exec svlogd -tt $LOG_FOLDER
|
3
modules/rhizo_base/files/etc/sv/esme/run
Executable file
3
modules/rhizo_base/files/etc/sv/esme/run
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
export PYTHONPATH=$PYTHONPATH:/var/rhizomatica/rccn
|
||||
exec python /var/rhizomatica/rccn/esme.py
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
ulimit -c unlimited
|
||||
/etc/init.d/kannel stop
|
||||
sleep 10
|
||||
#/usr/bin/killall -9 run_kannel_box bearerbox smsbox
|
||||
ps aux|grep kannel
|
||||
/etc/init.d/kannel start
|
||||
exec 2>&1
|
||||
exec chrt 10 /usr/bin/osmo-nitb -C -P -m -c /etc/osmocom/osmo-nitb.cfg -l /var/lib/osmocom/hlr.sqlite3
|
Loading…
Add table
Add a link
Reference in a new issue