Alexander Afanasyev | 63dd161 | 2012-10-03 18:53:07 -0700 | [diff] [blame] | 1 | diff --git ccnpingserver-wrapper ccnpingserver-wrapper |
| 2 | new file mode 100755 |
| 3 | index 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 | + |