From 79fe1958c8f9b74a144b411553b622e4958d7b93 Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 4 Aug 2011 00:04:03 +0200 Subject: streams/ fixed starter script for streams all stream starter scripts are now symlinks. streams now is able to list all implemented streams --- streams/stream-starter | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 streams/stream-starter (limited to 'streams/stream-starter') diff --git a/streams/stream-starter b/streams/stream-starter new file mode 100755 index 00000000..8f6c6a9d --- /dev/null +++ b/streams/stream-starter @@ -0,0 +1,18 @@ +#! /bin/bash +set -euf +STR=$PWD/streams +NAME=`basename $0` +case "$1" in + start) + $STR start $NAME + ;; + stop) + $STR stop + ;; + restart) + $STR restart $NAME + ;; + *) + echo "aidsballs" + ;; +esac -- cgit v1.2.3 From 0e72a3efdb8fe18e58f6c574f544efead95ec662 Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 4 Aug 2011 00:36:12 +0200 Subject: streams/* updated Makefile/stream now in file Makefile: now creates symlinks to the krebs folder stream.db: streams are stored in a file --- streams/stream-starter | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'streams/stream-starter') diff --git a/streams/stream-starter b/streams/stream-starter index 8f6c6a9d..cfcf91d4 100755 --- a/streams/stream-starter +++ b/streams/stream-starter @@ -1,6 +1,7 @@ #! /bin/bash set -euf -STR=$PWD/streams +HERE=`readlink -f $(dirname $0)` +STR=$HERE/streams NAME=`basename $0` case "$1" in start) -- cgit v1.2.3 From 557844ecfba1f60cc7cfa50b2a2eb62749c8ba8c Mon Sep 17 00:00:00 2001 From: root Date: Thu, 4 Aug 2011 01:05:51 +0200 Subject: streams/ fixed readlink fuckup in scripts --- streams/stream-starter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'streams/stream-starter') diff --git a/streams/stream-starter b/streams/stream-starter index cfcf91d4..4d3a406f 100755 --- a/streams/stream-starter +++ b/streams/stream-starter @@ -1,6 +1,6 @@ #! /bin/bash set -euf -HERE=`readlink -f $(dirname $0)` +HERE=$(dirname $(readlink -f $0)) STR=$HERE/streams NAME=`basename $0` case "$1" in -- cgit v1.2.3