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
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 processHowever, if you do:
service lwp start
you'll see 2 instances of it. This causes an issue when you doservice 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