Skip to contents

Terminates an osrm-routed process launched by osrm_start() or osrm_start_server().

Usage

osrm_stop(
  server = NULL,
  id = NULL,
  port = NULL,
  pid = NULL,
  wait = 1000L,
  quiet = FALSE
)

Arguments

server

Optional processx::process object returned by osrm_start_server().

id

Optional character id from osrm_servers().

port

Optional integer TCP port.

pid

Optional integer process id.

wait

Integer milliseconds to wait for clean shutdown (default 1000).

quiet

Logical; suppress messages (default FALSE).

Value

Invisibly, a list with fields id, pid, port, stopped (logical).

Details

This function provides a flexible way to stop a running OSRM process. If no arguments are specified, it defaults to stopping the most recently started server that is still alive.

You can also stop a specific server by providing: