Added instructions for running using Systemd

stable
Justin Reichardt 2022-06-13 00:18:04 -05:00
parent 8067fc048d
commit 8290b34e24
1 changed files with 20 additions and 0 deletions

View File

@ -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 ## How to use
### Configuring
Open the config file: Open the config file:
Linux: /etc/rhosts/rhosts.cfg Linux: /etc/rhosts/rhosts.cfg
@ -22,6 +24,19 @@ Example:
whitelist=www.site.xyz 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 ### Other Commands
- --version - --version
@ -36,6 +51,11 @@ Runs in daemon mode, refreshing every 24hrs (1440 minutes**
Changes the daemon refresh time 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 ## How to Install
### Linux ### Linux