Host Persister persists the hosts defined in a source file to the hosts file.
Go to file
Captain ALM a90ef84368
Make sure non one-shot executions perform reloads.
Allow for instant ^C without waiting for sleep.
2023-12-06 15:09:55 +00:00
.idea Fix tab support. 2023-12-05 21:55:25 +00:00
cmd/hostpersister Make sure non one-shot executions perform reloads. 2023-12-06 15:09:55 +00:00
hosts Make sure non one-shot executions perform reloads. 2023-12-06 15:09:55 +00:00
.gitattributes Initial commit. 2023-12-05 21:30:51 +00:00
.gitignore Initial commit. 2023-12-05 21:30:51 +00:00
go.mod Initial commit. 2023-12-05 21:30:51 +00:00
go.sum Initial commit. 2023-12-05 21:30:51 +00:00
hostpersister_.service Initial commit. 2023-12-05 21:30:51 +00:00
hostpersister.service Initial commit. 2023-12-05 21:30:51 +00:00
LICENSE.md Initial commit. 2023-12-05 21:30:51 +00:00
Makefile Initial commit. 2023-12-05 21:30:51 +00:00
README.md Fix Entry.go wrong way round arguments. 2023-12-05 23:10:48 +00:00

Host Persister

This allows for hosts specified in a host formatted file to be synced to the actual hosts file so-long as their entries do not already exist.

The .env file is used to configure the hosts file to use a source (SOURCE_FILE) to be synced to the actual file (HOSTS_FILE). There is the ability to overwrite existing values as part of sync, so long as the domain is the only one defined on the line (HOSTS_OVERWRITE = 1). There is the ability to periodic sync with a specified interval in milliseconds (SYNC_TIME).

Maintainer: Captain ALM

License: BSD 3-Clause