Roman Bedroš
05/27/2026, 2:08 PMMarvin
05/27/2026, 2:08 PMMarvin
05/27/2026, 2:09 PMtext
~/.prefect/server.pid
More precisely, it uses:
text
$PREFECT_HOME/server.pid
and PREFECT_HOME defaults to ~/.prefect.
A few important details:
- prefect server start --background → creates the PID file
- prefect server start in foreground mode → does not create the PID file
- The PID filename is server.pid
- There is also a separate services.pid for background server services
So if you’re looking for it, check:
text
~/.prefect/server.pid
Relevant source-verified behavior:
- background startup creates the file and writes the PID
- prefect server stop reads that file to terminate the process
If you want, I can also show you the exact CLI behavior for prefect server start/stop and how this changes if PREFECT_HOME is customized.