Thread Previous • Date Previous • Date Next • Thread Next |
On 04.02.2014 09:07, Alberto Mardegan wrote:
We actually need to support the case where multiple instances of the plugin are running, in different trusted sessions. I'm not sure what is the matter of PID tracking; what are the requirements there? My idea was to just start the plugin process, and kill it once we receive a reply from it.
It's unfortunately more complicated than that. To put that plugin process under lifecycle management, we need to know when that process starts, exits, crashes, we need to suspend it with the requesting app. Ultimately we need to be able to restart it if the app was stopped (killed) in the mean time.
IIUC, multiple instances of the same job under upstart can be easily launched/managed by using the "instance" option¹, so this should not be a problem.
¹ http://upstart.ubuntu.com/cookbook/#instance -- Michał (Saviq) Sawicz <michal.sawicz@xxxxxxxxxxxxx> Canonical Services Ltd.
Thread Previous • Date Previous • Date Next • Thread Next |