blob: 1dabc6ac2cbd114b527af49c25277acb750ca7ef [file] [log] [blame]
Alexander Afanasyeva2e423f2014-08-19 15:26:15 -05001description "NDN Autoconfig Server"
2author "Alexander Afanasyev <alexander.afanasyev@ucla.edu>"
3
4start on started nrd
5stop on stopping nrd
6
7respawn
8respawn limit unlimited
9
10setuid ndn
11setgid ndn
12
13script
14 FACE_URI=""
Alexander Afanasyev7688d0e2014-09-05 09:52:45 -070015 ROUTABLE_PREFIXES=""
Alexander Afanasyeva2e423f2014-08-19 15:26:15 -050016 if [ -f /etc/default/ndn-autoconfig-server ]; then
17 . /etc/default/ndn-autoconfig-server
18 fi
19
Alexander Afanasyevf4c49e62014-08-20 11:54:20 -070020 if [ "$FACE_URI" != "" ]; then
Alexander Afanasyeva2e423f2014-08-19 15:26:15 -050021 export HOME=/var/lib/ndn/ndn-autoconfig-server
Alexander Afanasyev7688d0e2014-09-05 09:52:45 -070022 exec /usr/bin/ndn-autoconfig-server $ROUTABLE_PREFIXES $FACE_URI
Alexander Afanasyeva2e423f2014-08-19 15:26:15 -050023 fi
24end script