From cc6bf663e770c5788167fb5dc5d325b609975956 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 1 Jul 2011 19:54:16 +0200 Subject: add init script for screen-based respawn --- contrib/sysmobts.init | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 contrib/sysmobts.init (limited to 'contrib') diff --git a/contrib/sysmobts.init b/contrib/sysmobts.init new file mode 100755 index 00000000..081a9d64 --- /dev/null +++ b/contrib/sysmobts.init @@ -0,0 +1,31 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: sysmobts +# Required-Start: +# Required-Stop: $local_fs +# Default-Start: 5 +# Default-Stop: 0 6 +# Short-Description: Start screen session with sysmobts software +# Description: +### END INIT INFO + +. /etc/default/rcS + +case "$1" in + start) + /usr/bin/screen -c /etc/osmocom/screenrc-sysmobts + ;; + stop) + echo "This script doesn't support stop" + exit 1 + ;; + restart|reload|force-reload) + exit 0 + ;; + show) + ;; + *) + echo "Usage: sysmobts {start|stop|show|reload|restart}" >&2 + exit 1 + ;; +esac -- cgit v1.2.3