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 | |
Alexander Afanasyev | 2ed9586 | 2015-07-23 11:11:53 +0800 | [diff] [blame] | 4 | start on started nfd |
| 5 | stop on stopping nfd |
Alexander Afanasyev | 4c568f2 | 2014-05-23 17:18:06 -0700 | [diff] [blame] | 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 |