aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-07-01 19:51:32 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-01 19:51:32 +0200
commitb10e9781d68e3f16ea08f216784152bc2e340448 (patch)
treec958e4d44b8865e62e678b32293f13011610aa02 /contrib
parent18d0818710eacbea8d89b62b751d28e7e0204ff3 (diff)
add respawn script and screenrc for respawning the process in screen
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/respawn.sh4
-rw-r--r--contrib/screenrc-sysmobts3
2 files changed, 7 insertions, 0 deletions
diff --git a/contrib/respawn.sh b/contrib/respawn.sh
new file mode 100755
index 00000000..38b8ba34
--- /dev/null
+++ b/contrib/respawn.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+while [ -e /etc/passwd ]; do
+ $*
+done
diff --git a/contrib/screenrc-sysmobts b/contrib/screenrc-sysmobts
new file mode 100644
index 00000000..cedb0ded
--- /dev/null
+++ b/contrib/screenrc-sysmobts
@@ -0,0 +1,3 @@
+chdir /tmp
+screen -t BTS 0 /etc/osmocom/respawn.sh /usr/bin/sysmobts -B 127.0.0.1
+detach