]> git.llucax.com Git - software/pymin.git/commitdiff
procman.ProcessManager.restart(p) call start(p) when p was not running.
authorLeandro Lucarella <llucax@gmail.com>
Tue, 20 May 2008 04:11:57 +0000 (01:11 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Wed, 21 May 2008 16:01:57 +0000 (13:01 -0300)
Otherwise, the namemap and pidmap are not updated.

pymin/procman.py

index 87e3282224e8266e109a39e3c822bd8a20539908..c86a596ea23a5af6d46dade5d39a98a3bdc22cdb 100644 (file)
@@ -125,7 +125,7 @@ class ProcessManager:
             pi.process.wait()
             pi.restart()
         else:
             pi.process.wait()
             pi.restart()
         else:
-            self.services[name].start()
+            self.start(name)
 
     def kill(self, name, signum):
         log.debug(u'ProcessManager.kill(%s, %s)', name, signum)
 
     def kill(self, name, signum):
         log.debug(u'ProcessManager.kill(%s, %s)', name, signum)