nfd+ndn-tlv-ping: New upstart scripts for ndnpingserver, nfd-autoreg, and nfd-status-http-server
nfd-autoreg and nfd-status-http-server are separate package to install,
if the function needs to be enabled
diff --git a/ndn-tlv-ping/debian/ndn-tlv-ping.upstart b/ndn-tlv-ping/debian/ndn-tlv-ping.upstart
new file mode 100644
index 0000000..4cfb4e4
--- /dev/null
+++ b/ndn-tlv-ping/debian/ndn-tlv-ping.upstart
@@ -0,0 +1,21 @@
+description "NDN TLV ping server"
+author "Alexander Afanasyev <alexander.afanasyev@ucla.edu>"
+
+start on started nrd
+stop on stopping nrd
+
+respawn
+respawn limit unlimited
+
+setuid ndn
+setgid ndn
+
+script
+ FLAGS=""
+ PREFIX="/localhost/ndnpingserver"
+ if [ -f /etc/default/ndn-tlv-ping ]; then
+ . /etc/default/ndn-tlv-ping
+ fi
+ export HOME=/var/lib/ndn/ndn-tlv-ping
+ exec /usr/bin/ndnpingserver "$PREFIX" $FLAGS
+end script