Added instructions for running using Systemd
parent
8067fc048d
commit
8290b34e24
20
Readme.md
20
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue