Eric Newberry | 9ab4a66 | 2015-05-28 11:36:41 -0700 | [diff] [blame] | 1 | description "NFD HTTP Status Server" |
Alexander Afanasyev | 4c568f2 | 2014-05-23 17:18:06 -0700 | [diff] [blame] | 2 | author "Alexander Afanasyev <alexander.afanasyev@ucla.edu>" |
| 3 | |
| 4 | start on started nfd |
| 5 | stop on stopping nfd |
| 6 | |
| 7 | respawn |
| 8 | respawn limit unlimited |
| 9 | |
| 10 | script |
| 11 | FLAGS="" |
| 12 | if [ -f /etc/default/nfd-status-http-server ]; then |
| 13 | . /etc/default/nfd-status-http-server |
| 14 | fi |
| 15 | export HOME=/tmp/nfd-status-http-server |
| 16 | exec /usr/bin/nfd-status-http-server $FLAGS |
| 17 | end script |