stop
Stop running services.
$ sysg stop
Options
--config
Path to the configuration file. Used when no supervisor is running to locate services. When a supervisor is running, it uses the supervisor's configuration.
$ sysg stop --config /etc/myapp/services.yaml
--service
Name of a specific service to stop. If not specified, all services are stopped. Leaves other services running.
$ sysg stop --service api
--sys
Opt into privileged system mode. Requires running as root.
$ sudo sysg stop --sys
--drop-privileges
Drop privileges after performing privileged setup.
$ sudo sysg stop --sys --drop-privileges
--log-level
Set logging verbosity for this invocation. Accepts named levels (trace, debug, info, warn, error, off) or numeric values (5-0).
$ sysg stop --log-level debug
Examples
Stop all services
$ sysg stop
Stop a specific service
$ sysg stop --service api
Leaves other services running.
What happens
- Services stop in reverse dependency order
- Each service receives
SIGTERM - After 10 seconds,
SIGKILLis sent if needed - The supervisor exits (unless other services are running)
When stopping a single service, its dependents keep running. Only crashes trigger cascading stops.