runitctl is a Bash script that provides a convenient way to manage services using the runit supervision suite in Void Linux. It acts as a translation layer for systemctl-like commands, making it easier to interact with runit services.
- Start, stop, restart, enable, and disable services
- Check service status
- List active and available services
- Provides a
--helpoption for quick reference
Clone the repository and run the script:
git clone https://github.com/yourusername/runitctl.git
cd runitctl
chmod +x install.sh
./install.shrunitctl <action> [service]| Command | Description |
|---|---|
start <service> |
Start a service |
stop <service> |
Stop a service |
restart <service> |
Restart a service |
status <service> |
Show service status |
enable <service> |
Enable a service to start automatically |
disable <service> |
Disable a service from starting automatically |
list-active |
List currently active services |
list-all |
List all available services |
--help |
Show help information |
Start a service:
runitctl start dhcpcdEnable a service:
runitctl enable dhcpcdCheck the status of a service:
runitctl status dhcpcdList active services:
runitctl list-active- If you try to start a service that is available but not enabled,
runitctlwill prompt you to enable it first. - This script is specifically designed for Void Linux and may not work on other distributions.
This project is licensed under the GPLv3 License.
Feel free to submit pull requests or open issues to improve this script!