blob: 5e68729a9e2347bf56374e42b9332f7a90d5e74d [file] [log] [blame]
Alexander Afanasyev63dd1612012-10-03 18:53:07 -07001diff --git ccnpingserver-wrapper ccnpingserver-wrapper
2new file mode 100755
3index 0000000..c0993c8
4--- /dev/null
5+++ ccnpingserver-wrapper
6@@ -0,0 +1,13 @@
7+#!/bin/sh
8+
9+# This script should be installed in the same place as ccnd, ccndc, ccndsmoketest, ...
10+# adjust the path to get consistency.
11+D=`dirname "$0"`
12+export PATH="$D:$PATH"
13+
14+if [ ! -f "$D/../etc/ccnx/ccnpingserver.conf" ]; then
15+ sleep 100
16+else
17+ su - ccnx -c "$D/ccnpingserver `cat $D/../etc/ccnx/ccnpingserver.conf | xargs`"
18+fi
19+