summaryrefslogtreecommitdiff
path: root/recipes/ti/matrix-tui
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/ti/matrix-tui')
-rwxr-xr-xrecipes/ti/matrix-tui/init24
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes/ti/matrix-tui/init b/recipes/ti/matrix-tui/init
new file mode 100755
index 0000000000..e5813825dc
--- /dev/null
+++ b/recipes/ti/matrix-tui/init
@@ -0,0 +1,24 @@
+#! /bin/sh
+
+matrixtui="/usr/bin/matrix_tui"
+TUI_OPTS="/usr/share/matrix/xml/matrix.xml"
+
+test -x "$matrixtui" || exit 0
+
+case "$1" in
+ start)
+ echo -n "Starting Matrix TUI application"
+ start-stop-daemon --start --quiet --background --pidfile /var/run/matrix-tui.pid --exec $matrixtui -- $TUI_OPTS
+ echo "."
+ ;;
+ stop)
+ echo -n "Stopping Matrix TUI application"
+ start-stop-daemon --stop --quiet --pidfile /var/run/matrix-tui.pid
+ echo "."
+ ;;
+ *)
+ echo "Usage: /etc/init.d/matrix-tui {start|stop}"
+ exit 1
+esac
+
+exit 0