From f430d218f2dfcca3ec10c2170a762082c028e1d9 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 9 Nov 2017 17:32:01 -0800 Subject: [PATCH] running.md: explain shutdown --- docs/running.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/running.md b/docs/running.md index 933800c..2e6684c 100644 --- a/docs/running.md +++ b/docs/running.md @@ -70,7 +70,15 @@ into a logfile: 2017-11-09T17:07:28-0800 [-] Transit starting on 4001 2017-11-09T17:07:28-0800 [wormhole_transit_relay.transit_server.Transit#info] Starting factory ... -% +% cat twistd.pid; echo +18985 +``` + +To shut down a ``twistd``-based server, you'll need to look in the +``twistd.pid`` file for the process id, and kill it: + +``` +% kill `cat twistd.pid` ``` To start the server each time the host reboots, you might use a crontab