blob: bab3f79cd2533514b4d76f7fea47344cdfaf90cc [file] [log] [blame]
Alexander Afanasyev469cbcd2014-05-08 01:25:11 -07001# nfd.conf
2#
3# NDN Forwarding Daemon
4
5description "NDN forwarding daemon"
6author "Alexander Afanasyev <alexander.afanasyev@ucla.edu>"
7
Alexander Afanasyevbcbf15e2014-05-09 10:23:37 -07008start on (local-filesystems and net-device-up IFACE!=lo)
9stop on runlevel [!2345]
Alexander Afanasyev469cbcd2014-05-08 01:25:11 -070010
11respawn
12respawn limit unlimited
13
14env HOME=/var/lib/ndn/nfd
15export HOME
16
17exec /usr/bin/nfd --config /etc/ndn/nfd.conf 2>> /var/log/ndn/nfd.log
Alexander Afanasyev147f8592014-07-30 12:48:29 -070018
19post-start script
20 if [ -f /etc/ndn/nfd-init.sh ]; then
21 sleep 2 # post-start is executed just after nfd process starts, but there is no guarantee
22 # that all initialization has been finished
23 . /etc/ndn/nfd-init.sh
24 fi
25end script
26
Alexander Afanasyev469cbcd2014-05-08 01:25:11 -070027post-stop exec sleep 2
Alexander Afanasyev147f8592014-07-30 12:48:29 -070028
Alexander Afanasyev22952e62014-08-01 14:34:54 -070029# The following option is useful, but not supported on Ubuntu 12.04
30# reload signal SIGHUP