Linux command
runit 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start runit init
runit
Run as stage 2
runsvdir -P [/etc/service]
Check service status
sv status [service_name]
Start service
sv start [service_name]
Stop service
sv stop [service_name]
Restart service
sv restart [service_name]
说明
runit is a Unix init scheme with service supervision. It's an alternative to systemd and SysV init. Three stages handle system boot. Stage 1 initializes, stage 2 runs services, stage 3 shuts down. Service directories contain run scripts. A simple executable script defines the service. Supervision restarts crashed services. Automatic recovery maintains system availability. Logging integrates with svlogd. Per-service log rotation and management.
FAQ
What is the runit command used for?
runit is a Unix init scheme with service supervision. It's an alternative to systemd and SysV init. Three stages handle system boot. Stage 1 initializes, stage 2 runs services, stage 3 shuts down. Service directories contain run scripts. A simple executable script defines the service. Supervision restarts crashed services. Automatic recovery maintains system availability. Logging integrates with svlogd. Per-service log rotation and management.
How do I run a basic runit example?
Run `runit` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more runit examples?
This page includes 6 examples for runit, plus related commands for nearby Linux tasks.