From: Stefan Paetow Date: Fri, 19 Sep 2014 15:44:02 +0000 (+0100) Subject: Create tids-wrapper X-Git-Tag: 1.4^2~4 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=commitdiff_plain;h=9818f642ade566c122b7af78100742775712f18e Create tids-wrapper The wrapper for the TIDS executable. Makes TIDS go nicely into the background --- 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}"