Alexander Afanasyev | 469cbcd | 2014-05-08 01:25:11 -0700 | [diff] [blame] | 1 | # nrd.conf |
| 2 | # |
| 3 | # NDN RIB Manager Daemon |
| 4 | |
| 5 | description "NDN RIB Manager Daemon" |
| 6 | author "Tai-Lin Chu <tailinchu@gmail.com>" |
| 7 | |
| 8 | start on started nfd |
| 9 | stop on stopping nfd |
| 10 | |
| 11 | respawn |
| 12 | respawn limit unlimited |
| 13 | |
| 14 | setuid ndn |
| 15 | setgid ndn |
| 16 | |
| 17 | pre-start exec sleep 2 |
| 18 | script |
| 19 | export HOME=/var/lib/ndn/nrd |
| 20 | /usr/bin/nrd --config /etc/ndn/nfd.conf 2>> /var/log/ndn/nrd.log |
| 21 | end script |
| 22 | |
| 23 | post-stop exec sleep 2 |
| 24 | |
| 25 | # post-start script |
| 26 | # sleep 3 |
| 27 | # # Apply initial configuration |
| 28 | # [ -r /etc/ndn/nfd.init ] && sh /etc/ndn/nfd.init |
| 29 | # end script |