blob: d3673f599c664feedda84ad848d548da14e906b6 [file] [log] [blame]
Alexander Afanasyev37a05f62014-05-09 18:55:21 -07001# nfd.conf
2#
3# NDN Forwarding Daemon
4
5description "NDN forwarding daemon"
6
7start on (local-filesystems and net-device-up IFACE!=lo)
8stop on runlevel [!2345]
9
10respawn
11respawn limit unlimited
12
13env HOME=/usr/local/var/lib/ndn/nfd
14export HOME
15
16exec /usr/local/bin/nfd --config /usr/local/etc/ndn/nfd.conf 2>> /usr/local/var/log/ndn/nfd.log
Alexander Afanasyevf08a7372015-02-09 21:28:19 -080017
18post-start script
19 if [ -f /usr/local/etc/ndn/nfd-init.sh ]; then
20 sleep 2 # post-start is executed just after nfd process starts, but there is no guarantee
21 # that all initialization has been finished
22 . /usr/local/etc/ndn/nfd-init.sh
23 fi
24end script
25
Alexander Afanasyev37a05f62014-05-09 18:55:21 -070026post-stop exec sleep 2