[Freeciv-Dev] Re: (PR#8807) Server doesn't start with broken ser script
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8807 >
Raimar Falke wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=8807 >
>
>
> Client starts server. Server does
>
> execvp("./ser", argv);
>
> but the ser script doesn't find the civserver binary and exits the
> script. But this will also exit the freshly forked server.
>
> Solution 1: try "./server/civserver" before "./ser".
>
> Solution 2: add a wrapper (sh -c) around the ser exec so that the
> script's exit doesn't exit the server process.
It's hard to handle all cases here. We should look for the civserver in
the same directory the civclient was run in ($prefix/civserver). And
_maybe_ if that fails try $prefix/server/civserver or
$prefix/../server/civserver. We should not try running the ser script
or any other wrapper.
I'm not entirely sure how to tell what directory the civclient program
is in, though.
jason
- [Freeciv-Dev] Re: (PR#8807) Server doesn't start with broken ser script,
Jason Short <=
|
|