How to stop server (hg serve) ?

Isaac Jurado diptongo at gmail.com
Sun Nov 1 18:08:09 CST 2009


Replying Alexander Schatten:
>
> So to conclude: is there a reason, why there is no
>
> hg serve --stop
>
> or
>
> hg serve --shutdown
>
> command?

Because in UNIX you have signals that already do the job.  And OSX is
UNIX too.  Somebody else has mentioned the --pid-file.  You can also try
with (in a shell):

    ps xu | fgrep -i hg | awk '{print $2}'

To get the daemon PID (e.g. 4938), and then send a termination signal:

    kill 4938



More information about the Mercurial mailing list