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/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
|
Loading…
Add table
Add a link
Reference in a new issue