From 8290b34e24e9eba477eefdb57ec364d39b3236de Mon Sep 17 00:00:00 2001 From: Justin Reichardt Date: Mon, 13 Jun 2022 00:18:04 -0500 Subject: [PATCH] Added instructions for running using Systemd --- Readme.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Readme.md b/Readme.md index b5ce70f..1b23553 100644 --- a/Readme.md +++ b/Readme.md @@ -4,6 +4,8 @@ This reroutes urls to 0.0.0.0 and ::1 in order to block them from being reached. ## How to use +### Configuring + Open the config file: Linux: /etc/rhosts/rhosts.cfg @@ -22,6 +24,19 @@ Example: whitelist=www.site.xyz +### Running + +Easiest thing is to just run the command `rhosts` + +If enabling as a service with systemd: + + systemctl enable rhosts.service + +You can also run it using Systemd: + + systemctl start rhosts.service + + ### Other Commands - --version @@ -36,6 +51,11 @@ Runs in daemon mode, refreshing every 24hrs (1440 minutes** Changes the daemon refresh time +- --removetimestamp + +Removes the timestamp on the log so it doesn't interfere with other log systems such as Systemd + + ## How to Install ### Linux