Skip to main content

Documentation Index

Fetch the complete documentation index at: https://sysg.dev/llms.txt

Use this file to discover all available pages before exploring further.

stop

Stop running services.
$ sysg stop

Options

ShortLongDescription
-c--configPath to the configuration file. Used when no supervisor is running to locate services. When a supervisor is running, it uses the supervisor’s configuration
-s--serviceName of a specific service to stop. If not specified, all services are stopped
---sysOpt into privileged system mode. Requires running as root
---log-levelSet logging verbosity for this invocation. Accepts named levels (trace, debug, info, warn, error, off) or numeric values (5-0)

Examples

Stop all services

$ sysg stop

Stop a specific service

$ sysg stop --service api
Leaves other services running.

What happens

  1. Services stop in reverse dependency order
  2. Each service receives SIGTERM
  3. After 10 seconds, SIGKILL is sent if needed
  4. The supervisor exits (unless other services are running)
When stopping a single service, its dependents keep running. Only crashes trigger cascading stops.

See also