zi srv
Summary
Section titled “Summary”Control a background service plugin — start, stop, restart, advance to the next Zsh instance, or quit it entirely. Services are plugins loaded with the service ice modifier.
Syntax / Usage
Section titled “Syntax / Usage”zi srv {service-id} [cmd]Available commands:
| cmd | Effect |
|---|---|
start | Start the service |
stop | Stop the service |
restart | Restart the service |
next | Move the service to a different Zsh instance |
quit | Terminate the service |
Details
Section titled “Details”Services are plugins or snippets that run as long-lived background processes, managed by Zinit across Zsh instances. Only one Zsh instance runs a given service at a time. The service ice modifier marks a plugin as a service at load time. srv provides runtime control over that lifecycle.
Examples
Section titled “Examples”# Stop a running servicezi srv my-service stop
# Restart a servicezi srv my-service restart
# Move service to another Zsh shell instancezi srv my-service nextSee Also
Section titled “See Also”- cmd-load
- cmd-ice