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:
Wile E. Coyote 2018-11-15 15:31:40 +00:00
parent 44fff5a761
commit 7d506eb4be
7 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,4 @@
#!/bin/sh
LOG_FOLDER=/var/log/esme
mkdir -p $LOG_FOLDER
exec svlogd -tt $LOG_FOLDER

View file

@ -0,0 +1,3 @@
#!/bin/sh
export PYTHONPATH=$PYTHONPATH:/var/rhizomatica/rccn
exec python /var/rhizomatica/rccn/esme.py

View file

@ -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