Create tids-wrapper
authorStefan Paetow <spaetow@users.noreply.github.com>
Fri, 19 Sep 2014 15:44:02 +0000 (16:44 +0100)
committerStefan Paetow <spaetow@users.noreply.github.com>
Fri, 19 Sep 2014 15:44:02 +0000 (16:44 +0100)
The wrapper for the TIDS executable. Makes TIDS go nicely into the background

redhat/tids-wrapper [new file with mode: 0644]

diff --git a/redhat/tids-wrapper b/redhat/tids-wrapper
new file mode 100644 (file)
index 0000000..55e3d0d
--- /dev/null
@@ -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}"