From 4480c4eda223b98899b0fbd926bc34f7bd0e1a18 Mon Sep 17 00:00:00 2001 From: nathan dawit Date: Wed, 14 Jun 2023 13:24:24 +0300 Subject: Add instructions for Runit in README.md --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 7812d0d..02b87e1 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,32 @@ $ sudo systemctl enable evremap.service $ sudo systemctl start evremap.service ``` +## Runit + +If you're using Runit instead of Systemd, follow these steps to create a service. + +* Create a directory called `evremap` and create a file called `run` under it +```console +sudo mkdir /etc/sv/evremap +sudo touch /etc/sv/evremap/run +``` + +* Copy these lines into the run file +```console +#!/bin/sh +set -e +exec remap +``` + +Replace `` with the path to your evremap executable and `` with the path +to your configuration file + +* Finally, symlink the evremap directory to `/var/service` +```console +sudo ln -s /etc/sv/evremap /var/service +``` + + ## How do I make this execute a command when a key is pressed? That feature is not implemented. -- cgit v1.2.3