From 9818f642ade566c122b7af78100742775712f18e Mon Sep 17 00:00:00 2001 From: Stefan Paetow Date: Fri, 19 Sep 2014 16:44:02 +0100 Subject: [PATCH] Create tids-wrapper The wrapper for the TIDS executable. Makes TIDS go nicely into the background --- redhat/tids-wrapper | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 redhat/tids-wrapper diff --git a/redhat/tids-wrapper b/redhat/tids-wrapper new file mode 100644 index 0000000..55e3d0d --- /dev/null +++ b/redhat/tids-wrapper @@ -0,0 +1,14 @@ +#! /usr/bin/env bash + +PIDFILE=${1} +LOGFILE=${2} +shift 2 + +unset DISPLAY +/usr/bin/tids $@ >> ${LOGFILE} 2>&1 & +BGPID=$! +RET=$? + +echo "${BGPID}" > "${PIDFILE}" + +exit "${RET}" -- 2.1.4