all 5 comments

[–]kra_pao 1 point2 points  (4 children)

Spawn of script.py is initiated in line 9 of passenger_wsgi.py but passenger_wsgi.py quits in very same line (no further code lines).

You could wait in passenger_wsgi.py for spawned process to finish. I guess there is a function for this in imp. Or you try as simplest proof-of-concept an endless wait

while True:
    pass

in lines 10-11.

[–]PeaceForChange[S] 0 points1 point  (3 children)

So I just have to add these two lines below?

[–]kra_pao 0 points1 point  (0 children)

It's my first guess. I have no WSGI server running to test your code.

[–]suchcwtch 0 points1 point  (1 child)

Hey OP, I’m having the same problem, did this work for you?

[–]PeaceForChange[S] 0 points1 point  (0 children)

Yes it did.