ndncert: Initial release
Change-Id: I280c7a059b330e4065f66615165741f411d72168
diff --git a/ndncert/debian/ndncert-server.upstart b/ndncert/debian/ndncert-server.upstart
new file mode 100644
index 0000000..22ab33b
--- /dev/null
+++ b/ndncert/debian/ndncert-server.upstart
@@ -0,0 +1,21 @@
+description "NDN Certificate Management System Library"
+author "Zhiyi Zhang <zhiyi@cs.ucla.edu>"
+
+start on started nfd
+stop on stopping nfd
+
+respawn
+respawn limit unlimited
+
+setuid ndn
+setgid ndn
+
+script
+ FLAGS = ""
+ if [ -f /etc/default/ndncert ]; then
+ . /etc/default/ndncert
+ fi
+
+ export HOME=/var/lib/ndn/ndncert
+ exec /usr/bin/ndncert-ca-server -c /etc/ndncert/ndncert-ca.conf $FLAGS
+end script