Code Monkey home page Code Monkey logo

sv-mgr's Introduction

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.

sv-mgr's People

Contributors

hristoast avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.