For the moment I have the following fix in place I modified the above file as
follows:
def _getDaemonPID(self, name):
"""
For a given daemon name, return its PID from a .pid file.
"""
if name == 'zopectl':
name = 'Z2'
elif name == 'zeoctl':
name = 'ZEO'
elif '_' in name:
collector, daemon = name.split('_', 1)
name = '%s-%s' % (daemon, collector)
else:
name = "%s-zenossserverhostname" % name
pidFile = zenPath('var', '%s.pid' % name)
if os.path.exists(pidFile):
pid = open(pidFile).read()
try:
pid = int(pid)
except ValueError:
return None
return self._pidRunning(int(pid))
else:
pid = None
Notice the else: name= I changed that from -localhost to -zenossservername
I would still like to know the "Proper" way to do this.
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=31532#31532
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users