Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/simplyceo/runit-service


https://github.com/simplyceo/runit-service

linux runit runit-service

Last synced: 15 days ago
JSON representation

Awesome Lists containing this project

README

        

runit-service
=============

A custom tool to manage runit services.

The main goal is to provide a `systemctl` like command to easily manage complex commands.

Usage
-----

In most cases `runit-service ` can be used.

Only when using `list`, `` can be empty. `enabled` too, but it accepts a value.

Available modes:

- list: List the services located at '/etc/runit/sv'.
- link: Link the service from '/etc/runit/sv' to '/etc/runit/runsvdir/default'.
- enabled: List the enabled services located at '/etc/runit/runsvdir/default'.
- disable: Disable a service from activating at boot.
- enable: Enable a service activation after boot.
- status: Display the service information.
- start: Start the service.
- restart: Stop and start the service.
- stop: Stop the service.

Installation
------------

Give yourself `root` privileges and run these instructions.

Set mode to `rwxr-xr-x` or `0755`:
```shell
chmod 0755 runit-service.sh
```

Move it to a `bin` folder. Preferably along runit scripts:
```shell
cp runit-service.sh /usr/bin/runit-service
```