From f86c7b6934c1caa53b84b34045f5de755b9cfb36 Mon Sep 17 00:00:00 2001 From: haturatu Date: Tue, 20 Aug 2024 22:52:18 +0900 Subject: first commit --- README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/README.md b/README.md index 5b174f1..645dae7 100644 --- a/README.md +++ b/README.md @@ -1 +1,38 @@ # lume-watcher + +## Usage + +1. Clone this repository. +``` +git clone https://github.com/haturatu/lume-watcher +``` + +2. Move the mongod script to /etc/init.d/mongod. +``` +sudo mv lume-watcher /etc/init.d/lume-watcher +``` + +3. Optionally, change the permissions of the mongod script. +``` +sudo chmod +x /etc/init.d/lume-watcher +``` + +4. Add a service to SysVinit. +``` +sudo update-rc.d lume-watcher defaults +``` +done! + +## Start-Stop +``` +sudo /etc/init.d/lume-watcher start +``` +``` +sudo /etc/init.d/lume-watcher stop +``` +``` +sudo /etc/init.d/lume-watcher restart +``` +``` +sudo /etc/init.d/lume-watcher status +``` -- cgit v1.2.3