Adding files for running trust_router on rhel6-ish distributions nicely
[trust_router.git] / redhat / trust_router-wrapper
diff --git a/redhat/trust_router-wrapper b/redhat/trust_router-wrapper
new file mode 100755 (executable)
index 0000000..81bf47e
--- /dev/null
@@ -0,0 +1,11 @@
+#! /usr/bin/env bash
+
+cd "${2}"
+
+/usr/bin/trust_router > "${3}.$(date +'%Y%m%d%H%M')" 2>&1 &
+BGPID=$!
+RET=$?
+
+echo "${BGPID}" > "${1}"
+
+exit "${RET}"