From db8dba5f9b6aad8973d13bd7802cbc81a42179b9 Mon Sep 17 00:00:00 2001 From: Aditya Date: Wed, 15 Jun 2022 12:14:07 +0530 Subject: [PATCH] update README --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ff54d1..8b32c50 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,18 @@ # code-server-openrc -OpenRC script for code-server \ No newline at end of file +OpenRC script for code-server. + +This script is pretty generic and should be able to run on any OpenRC-based distribution with minimal tweaks. + +## Usage +Put `code-server` in `/etc/init.d` and make it executable with `chmod +x code-server`. Put your username in line 3. + +Run on boot with default runlevel +``` +rc-update add code-server default +``` + +Start the service immediately +``` +rc-service code-server start +```