claudyus / LXC-Web-Panel

LXC Web Panel improved for lxc 1.0+
http://claudyus.github.io/LXC-Web-Panel/
Other
221 stars 68 forks source link

upstart starts process twice #2

Closed gygelly closed 10 years ago

gygelly commented 10 years ago

This is on Ubuntu 14.04 If you run it manually, via: /usr/bin/python /srv/lwp/lwp.py and then do: ps aux | grep lwp You'll see that there is only one instance of the process

However, if you do: service lwp start you'll see 2 instances of it. This causes an issue when you do service lwp stop as that only stops the first one.

The original lwp doesn't exhibit this behavior, and the /etc/init.d/lwp is the same between your version and that one, so it must be some property of lwp.py

claudyus commented 10 years ago

Hi @gygelly,

I believe that is something related to flask reload feature. Can you try to set Degub = False inside the config file and retry.

gygelly commented 10 years ago

That did it!