GithubHelp home page GithubHelp logo

tranzystorek-io / rsv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jojiiofficial/rsv

0.0 1.0 0.0 176 KB

The runit sv command rewritten in rust with additional features

License: GNU General Public License v3.0

Rust 100.00%

rsv's Introduction

rsv

The runit sv command rewritten in rust with nice new features.

Additional features

  • Enable/Disable services (automatically creating the symlink)
  • Bash completion
  • Listing services
  • Custom timeout
  • Much cleaner code than the original sv command
  • Automatically use sudo if ran as user (feature: auto_sudo. Used by default)

Installation

(Add the repo like described)
pacman -S rsv

AUR

yay -S rsv (Other AUR helpers will work too)

cargo install rsv

From git

git clone https://github.com/JojiiOfficial/rsv
cd rsv
cargo build --release

Usage

rsv 1.1.0
Jojii S
A tool to maintain runit services like systemd services

USAGE:
    rsv [FLAGS] [OPTIONS] [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -v, --verbose    
    -V, --version    Prints version information

OPTIONS:
    -t, --timeout <timeout>    

SUBCOMMANDS:
    list         List services
    enable       Enable a service
    disable      Disable a service
    start        Start a service
    stop         Stop a service
    restart      Restart a service
    kill         Send SIGKILL if the service is running
    pause        Send SIGSTOP if the service is running
    continue     Send SIGCONT if the service is running
    alarm        Send SIGALARM if the service is running
    help         Prints this message or the help of the given subcommand(s)
    hup          Send SIGHUP if the service is running
    interrupt    Send SIGINT if the service is running
    once         Start if service is not running. Do not restart if it stops
    status       Get the status of a service
    term         Send SIGTERM if the service is running

Examples

sudo rsv list --disabled/--enabled # list all disabled/enabled services 
sudo rsv list --enabled --down # list all enabled services which aren't running
sudo rsv enable cupsd # enabled cupsd
sudo rsv start cupsd # start cupsd service (enable if service is disabled)

TODO

  • Listing services
  • Shell completion
  • Auto sudo

rsv's People

Contributors

jojiiofficial avatar waynevanson avatar joseluis avatar figsoda avatar

Watchers

 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.