Alexander Afanasyev | 469cbcd | 2014-05-08 01:25:11 -0700 | [diff] [blame^] | 1 | # nfd.conf |
| 2 | # |
| 3 | # NDN Forwarding Daemon |
| 4 | |
| 5 | description "NDN forwarding daemon" |
| 6 | author "Alexander Afanasyev <alexander.afanasyev@ucla.edu>" |
| 7 | |
| 8 | # start on filesystem or runlevel [2345] |
| 9 | # stop on runlevel [!2345] |
| 10 | |
| 11 | start on started network-services |
| 12 | stop on stopping network-services |
| 13 | |
| 14 | respawn |
| 15 | respawn limit unlimited |
| 16 | |
| 17 | env HOME=/var/lib/ndn/nfd |
| 18 | export HOME |
| 19 | |
| 20 | exec /usr/bin/nfd --config /etc/ndn/nfd.conf 2>> /var/log/ndn/nfd.log |
| 21 | post-stop exec sleep 2 |