From 1b1b674c708888840361cb6c617e7e55d7c36bee Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 12 Sep 2011 17:35:26 +0200 Subject: //Reaktor: redirect output to syslog --- index | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'index') diff --git a/index b/index index ac647ca..0582737 100755 --- a/index +++ b/index @@ -4,4 +4,11 @@ set -euf # cd //Reaktor cd $(dirname $(readlink -f $0)) +# redirect stdout [and stderr] to syslog +stdout=`mktemp -u` +mkfifo $stdout +trap "rm -vf $stdout" EXIT INT +exec 1<>$stdout 2>&1 +logger -t Reaktor -f $stdout & + exec IRC/index -- cgit v1.2.3