|
From: Alex P. <pe...@in...> - 2006-07-31 13:22:21
|
Michal Kubecek wrote:
> On Wed, Jul 26, 2006 at 12:11:06PM -0400, Rick Debay wrote:
>
>>Executing '/etc/init.d/firebird restart' will return 'done' for both the
>>stop and start, but 'netstat -l' won't show anything listening on port
>>3050 or port gds_db. Executing '/etc/init.d/firebird start' (even after
>>a supposedly successful restart) and 'netstat -l' will show a process
>>listening on gds_db.
>
>
> The same I have on SuSE 10.1. The problem is probably in the fact that
> 'stop' finishes before the server (and guard) is actually finished.
> I found two solutions. First is a dirty trick - put short delay between
> '$0 stop' and '$0 start' (0.3 s is enough for me). Second, which I would
> prefer, is to replace "stop" section with
>
> killproc ${FIREBIRD}/bin/fbserver
>
> This is even more consistent as "start" section uses startproc.
>
Michal, I prefer pidfile associated approach (this will simplify use of
use of mulliple instances). I commit 'sleep 1' to 2.0 release, but we
must return to HEAD install. Can we use something like
killproc -pid `cat $pidfile`
?
|