Skip to content
Disable or enable runit services with style
Python Shell Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fish_completion
.gitignore
LICENSE
Makefile
README.md
sv-mgr.gif
sv_mgr.py
test.py

README.md

sv-disable / sv-enable / sv-mgr

Easily enable or disable runit services.

Installation

sudo make install

This makes symlinks to the sv_mgr.py file in this repository. Use the DESTDIR var to change the install location as needed.

Why?

By its nature, runit is a set of very small tools; it doesn't do a lot of extra crap and I appreciate that. Some may feel it is a bit minimalistic, but I think that's a strong point.

One thing I find myself doing over and over again, is enabling or disabling services by making or removing symlinks. Easy enough, but it gets kind of old.

Inspired by this repetition, sv-disable, sv-enable, and sv-mgr were conceived to be used on a Void Linux setup but could work with any setup involving runit.

The idea is to have a nice-ish interface to disabling or enabling services:

➜ sudo sv-enable nginx
[  OK  ]  Enabling service: 'nginx'

➜ sudo sv-disable nginx
[  OK  ]  Disabling service: 'nginx'

➜ sudo sv-disable docker
[ FAIL ]  'docker' is not enabled!

in action

Goals

Not many: aside from disabling or enabling a service, listing of active services is available via sv-mgr.

In the future, it might be desirable to have the default directory values read from a config file.

You can’t perform that action at this time.