Shock Jiang | 010a4ae | 2014-11-26 14:55:19 -0800 | [diff] [blame] | 1 | description "Domain Name Service for Named Data Networking" |
| 2 | author "Xiaoke Jiang <shock.jiang@gmail.com>" |
| 3 | |
| 4 | start on started nrd |
| 5 | stop on stopping nrd |
| 6 | |
| 7 | respawn |
| 8 | respawn limit 10 5 |
| 9 | # respawn limit unlimited |
| 10 | |
| 11 | setuid ndns |
| 12 | setgid ndns |
| 13 | |
| 14 | script |
| 15 | export HOME=/var/lib/ndns |
| 16 | NDNS_DAEMON_ENABLE=false |
| 17 | . /etc/default/ndns |
Alexander Afanasyev | c16331a | 2014-12-18 22:32:09 -0800 | [diff] [blame] | 18 | if [ "$NDNS_DAEMON_ENABLE" = "true" ]; then |
Shock Jiang | 010a4ae | 2014-11-26 14:55:19 -0800 | [diff] [blame] | 19 | exec /usr/bin/ndns-daemon -c /etc/ndns/ndns.conf |
| 20 | fi |
| 21 | end script |