ndn_application: init processId and fix nfd not being killed
Change-Id: I3ec5d79f903130d0ce42fd1c2a18bd73065757e7
refs: #3671
diff --git a/ndn/ndn_application.py b/ndn/ndn_application.py
index 66f0b1b..48a6c1d 100644
--- a/ndn/ndn_application.py
+++ b/ndn/ndn_application.py
@@ -1,6 +1,6 @@
# -*- Mode:python; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
#
-# Copyright (C) 2015 The University of Memphis,
+# Copyright (C) 2016 The University of Memphis,
# Arizona Board of Regents,
# Regents of the University of California.
#
@@ -27,6 +27,7 @@
def __init__(self, node):
self.node = node
self.isRunning = False
+ self.processId = ""
def start(self, command):
if self.isRunning is True:
diff --git a/ndn/nfd.py b/ndn/nfd.py
index 45f873a..17c7b4a 100644
--- a/ndn/nfd.py
+++ b/ndn/nfd.py
@@ -59,7 +59,7 @@
node.cmd("export HOME=%s" % node.homeFolder)
def start(self):
- NdnApplication.start(self, "sudo nfd --config %s 2>> %s &" % (self.confFile, self.logFile))
+ NdnApplication.start(self, "nfd --config %s 2>> %s &" % (self.confFile, self.logFile))
time.sleep(2)
def setStrategy(self, name, strategy):