diff options
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/sysmobts.init | 31 |
1 files changed, 31 insertions, 0 deletions
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 |