add respawn script and screenrc for respawning the process in screen

This commit is contained in:
Harald Welte 2011-07-01 19:51:32 +02:00
parent 18d0818710
commit b10e9781d6
2 changed files with 7 additions and 0 deletions

4
contrib/respawn.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
while [ -e /etc/passwd ]; do
$*
done

View File

@ -0,0 +1,3 @@
chdir /tmp
screen -t BTS 0 /etc/osmocom/respawn.sh /usr/bin/sysmobts -B 127.0.0.1
detach