Alexander Afanasyev | 4c568f2 | 2014-05-23 17:18:06 -0700 | [diff] [blame] | 1 | description "NDN TLV ping server" |
2 | author "Alexander Afanasyev <alexander.afanasyev@ucla.edu>" | ||||
3 | |||||
4 | start on started nrd | ||||
5 | stop on stopping nrd | ||||
6 | |||||
7 | respawn | ||||
8 | respawn limit unlimited | ||||
9 | |||||
10 | setuid ndn | ||||
11 | setgid ndn | ||||
12 | |||||
13 | script | ||||
14 | FLAGS="" | ||||
15 | PREFIX="/localhost/ndnpingserver" | ||||
16 | if [ -f /etc/default/ndn-tlv-ping ]; then | ||||
17 | . /etc/default/ndn-tlv-ping | ||||
18 | fi | ||||
19 | export HOME=/var/lib/ndn/ndn-tlv-ping | ||||
20 | exec /usr/bin/ndnpingserver "$PREFIX" $FLAGS | ||||
21 | end script |