Skip to main content

Synopsis

fishnet stop
Stops a running Fishnet process that was started via the CLI. Sends a SIGTERM signal to the process and waits for graceful shutdown.

Arguments

This command takes no arguments.

Examples

Stop the running server

fishnet stop
Output (when running):
Fishnet stopped.
Output (when not running):
Fishnet is not running.
Output (stale PID file):
Fishnet is not running (stale pid file removed).

Behavior

  • Reads the PID file to identify the running process
  • Checks if the process is actually alive
  • Sends SIGTERM signal for graceful shutdown
  • Waits up to 10 seconds for the process to terminate
  • Removes the PID file after successful shutdown
  • Cleans up stale PID files if the process is already dead

Error messages

Timeout waiting for shutdown:
timed out waiting for process 12345 to stop
The process did not respond to SIGTERM within 10 seconds.

Exit codes

  • 0 - Server stopped successfully or was not running
  • 1 - Error occurred (timeout, failed to send signal, etc.)

Platform support

This command is only supported on Unix platforms (Linux, macOS). On other platforms, it will fail with:
stop is only supported on unix targets in this build

Build docs developers (and LLMs) love