summaryrefslogtreecommitdiffstats
path: root/streams/groove
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-08-03 23:55:36 +0200
committermakefu <github@syntax-fehler.de>2011-08-03 23:55:36 +0200
commitb4d2a84c6d96c7b6bee603680099fb5c38b4bb22 (patch)
tree67bce931885320fb223b0a619a308fafab5b1e4e /streams/groove
parent2eda0457da50d0762f8094da58dcb63cf57e3970 (diff)
finished protype of streams
streams/streams: runs given streams by name with zsh start|stop|restart|status|list [streamname] the Makefile has yet to be fixed for that one streams/groove: uses streams to start|stop|restart groovesalad stream
Diffstat (limited to 'streams/groove')
-rwxr-xr-xstreams/groove19
1 files changed, 4 insertions, 15 deletions
diff --git a/streams/groove b/streams/groove
index 935a16d9..8c2faddd 100755
--- a/streams/groove
+++ b/streams/groove
@@ -1,25 +1,14 @@
#! /bin/bash
set -euf
-CMD="exec mplayer http://somafm.com/groovesalad.pls"
-function start() {
- stop
- tmux start-server
- tmux new-session -d "$CMD"
-}
-function stop()
-{
- pkill mplayer || :
-}
-
+STR=$PWD/streams
case "$1" in
start)
- start
+ $STR start groove
stop)
- stop
+ $STR stop
;;
restart)
- stop
- start
+ $STR restart groove
;;
*)
echo "aidsballs"