Linux command
runsv 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Supervise a service
runsv [/etc/service/myservice]
Check service status
sv status [myservice]
Send signal
sv signal [myservice]
说明
runsv supervises a single service. It runs and monitors the service defined in the directory. The run script is executed and monitored. If it exits, runsv restarts it. Optional finish script runs after service exits. Cleanup operations go here. Optional log directory runs a logging service. Captures stdout/stderr. Control interface via supervise directory. The sv command communicates here.
FAQ
What is the runsv command used for?
runsv supervises a single service. It runs and monitors the service defined in the directory. The run script is executed and monitored. If it exits, runsv restarts it. Optional finish script runs after service exits. Cleanup operations go here. Optional log directory runs a logging service. Captures stdout/stderr. Control interface via supervise directory. The sv command communicates here.
How do I run a basic runsv example?
Run `runsv [/etc/service/myservice]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more runsv examples?
This page includes 3 examples for runsv, plus related commands for nearby Linux tasks.