Server does not reload/start if `deamon` is running

13 views
Skip to first unread message

neurino

unread,
Feb 16, 2011, 11:00:34 AM2/16/11
to pylons-discuss
I have a daemon handling some scheduled jobs that can be started /
stopped by my pylons project so it can run even if the server is not
running.

To daemonize my utilities I use this code:

http://code.activestate.com/recipes/66012/#c9

If the daemon is running I get a error when paster serve reloads or I
stop it with Ctrl-C and try to restart again:

socket.error: [Errno 98] Address already in use

running netstat I get:

(mydevenv)# netstat -lp | grep 5000
tcp 0 0 localhost:5000 *:*
LISTEN 25566/python

and 25566 is the pid of my daemon while, before server crashes with
above error, there figures paster pid

So, isn't the `daemon` supposed to work properly?
If I start it from shell instead of webpage it does not bind to port
5000...

Any advice?

C J

unread,
May 11, 2021, 3:39:58 AM5/11/21
to pylons-discuss

I have this problem since last week. Any Idea?
Reply all
Reply to author
Forward
0 new messages