From d9897728bd722bf2eae098a50da301912822164e Mon Sep 17 00:00:00 2001 From: Laura Date: Mon, 25 Mar 2024 03:00:10 +0000 Subject: [PATCH 1/2] add info on installation and service management to the readme --- README.md | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/README.md b/README.md index f3b56b3..a2600e4 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,73 @@ on Linux. PATH as `zenstates` (installing `zenstates-git` from the AUR will provide this) +## Installation + +### Package Managers + +#### Arch + +This is on the AUR at `disable-c6-runit-git`. Either install it using your +favourite AUR helper, or install the package without a helper: + +```sh +$ git clone https://aur.archlinux.org/disable-c6-runit-git.git +$ cd disable-c6-runit-git +$ makepkg -si +``` + +### Manual Installation + +Clone the repo: + +```sh +$ git clone --depth=1 https://codeberg.org/revsuine/disable-c6-runit.git +$ cd disable-c6-runit +``` + +Copy the `disable-c6/` folder to wherever you store your runit services, e.g. +for where Artix keeps their folders: + +```sh +# cp -r disable-c6 /etc/runit/sv +``` + +For Void: + +```sh +# cp -r disable-c6 /etc/sv +``` + +## Enabling the Service + +Symlink the service directory to your enabled services directory as usual. This +varies by distro. + +### Void Linux + +```sh +# ln -s /etc/sv/disable-c6 /var/service +``` + +### Artix Linux + +```sh +# ln -s /etc/runit/sv/disable-c6 /run/runit/service +``` + +### Debian + +```sh +# ln -s /etc/runit/disable-c6 /etc/service +``` + +## Disabling the Service + +Break the symlink: + +```sh +# unlink /var/service/disable-c6 +``` + +Or wherever your service directory is. + From 09f8c5ed52b00ff3323d8b7a0daac6e41e828395 Mon Sep 17 00:00:00 2001 From: Laura Date: Mon, 25 Mar 2024 03:02:57 +0000 Subject: [PATCH 2/2] get rid of syntax highlighting --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a2600e4..14be804 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ on Linux. This is on the AUR at `disable-c6-runit-git`. Either install it using your favourite AUR helper, or install the package without a helper: -```sh +``` $ git clone https://aur.archlinux.org/disable-c6-runit-git.git $ cd disable-c6-runit-git $ makepkg -si @@ -30,7 +30,7 @@ $ makepkg -si Clone the repo: -```sh +``` $ git clone --depth=1 https://codeberg.org/revsuine/disable-c6-runit.git $ cd disable-c6-runit ``` @@ -38,13 +38,13 @@ $ cd disable-c6-runit Copy the `disable-c6/` folder to wherever you store your runit services, e.g. for where Artix keeps their folders: -```sh +``` # cp -r disable-c6 /etc/runit/sv ``` For Void: -```sh +``` # cp -r disable-c6 /etc/sv ``` @@ -55,19 +55,19 @@ varies by distro. ### Void Linux -```sh +``` # ln -s /etc/sv/disable-c6 /var/service ``` ### Artix Linux -```sh +``` # ln -s /etc/runit/sv/disable-c6 /run/runit/service ``` ### Debian -```sh +``` # ln -s /etc/runit/disable-c6 /etc/service ``` @@ -75,7 +75,7 @@ varies by distro. Break the symlink: -```sh +``` # unlink /var/service/disable-c6 ```