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