From: Max D. <Max...@lr...> - 2005-01-07 10:21:10
|
Hi Lionel, in Net::Server, it is said: "Each of the server personalities (except for INET), support restarting via a HUP signal (see "kill -l"). When a HUP is received, the server will close children (if any), make sure that sockets are left open, and re-exec using the same commandline parameters that initially started the server." Making sure that sockets are left open - that's what I wanted. But this happens, when I try HUPing sqlgrey: 2005/01/07-10:37:28 Server closing! 2005/01/07-10:37:28 HUP'ing server Process Backgrounded 2005/01/07-10:37:29 Pid_file already exists for running process 26902)... aborting at line 268 in file /usr/lib/perl5/site_perl/5.8.0/Net/Server.pm 2005/01/07-10:37:29 Server closing! sqlgrey source says: if (defined $opt{kill}) { ... unlink $pidfile; exit; } but in case of a HUP, the old pidfile still exists. Do you know an easy solution for this? Thanks, Max |