summaryrefslogtreecommitdiffstats
path: root/streams/groove
diff options
context:
space:
mode:
authorroot <root@krebs>2011-06-07 20:50:29 +0200
committerroot <root@krebs>2011-06-07 20:50:29 +0200
commit957f3ca5356c6a0d75803c1c131758b383193f14 (patch)
treedac5acbaf70503706b2997a2bd8f6f394b114eeb /streams/groove
parentb27232afbf0a1afeeadd3fb8a1d37c7b07fee7f8 (diff)
fixed run-scripts for streams
Diffstat (limited to 'streams/groove')
-rwxr-xr-xstreams/groove7
1 files changed, 3 insertions, 4 deletions
diff --git a/streams/groove b/streams/groove
index f3e3719a..935a16d9 100755
--- a/streams/groove
+++ b/streams/groove
@@ -1,11 +1,10 @@
#! /bin/bash
set -euf
-CMD="mplayer http://somafm.com/groovesalad.pls"
+CMD="exec mplayer http://somafm.com/groovesalad.pls"
function start() {
stop
- tmux list-sessions &&
- tmux new-window "$CMD" ||
- tmux new-session "$CMD" ||
+ tmux start-server
+ tmux new-session -d "$CMD"
}
function stop()
{