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 | |
Alexander Afanasyev | bcbf15e | 2014-05-09 10:23:37 -0700 | [diff] [blame] | 8 | start on (local-filesystems and net-device-up IFACE!=lo) |
| 9 | stop on runlevel [!2345] |
Alexander Afanasyev | 469cbcd | 2014-05-08 01:25:11 -0700 | [diff] [blame] | 10 | |
| 11 | respawn |
| 12 | respawn limit unlimited |
| 13 | |
| 14 | env HOME=/var/lib/ndn/nfd |
| 15 | export HOME |
| 16 | |
| 17 | exec /usr/bin/nfd --config /etc/ndn/nfd.conf 2>> /var/log/ndn/nfd.log |
| 18 | post-stop exec sleep 2 |