Updated systemd init scripts and documentation

This commit is contained in:
Eric Renfro 2017-08-19 18:33:30 -04:00
parent 52546805ad
commit f97da29cee
3 changed files with 10 additions and 4 deletions

View file

@ -73,6 +73,12 @@ systemctl --user enable update-ipv6.service
This will enable and start the timer, and enable the services for the dynamic-ip.target for your user account.
# Plugins
dynamic-ip uses a plugin type architecture to allow you to define many other detections to perform, and how and when to perform them. These core plugins are stored in the dynamic-ip/plugins directory. update-ipv4 and ipdate-ipv6 are provided for checking for changes to IPv4 and IPv6 addresses and running the update.d agents upon such changes.
You can create your own plugins to do other detections. One such example would be to detect if a locally stored attribute variable form aother piece of software differs from the current DNS records. One such case this may be useful is with shorewall's params file, and if that differs, change the value in the file and re-run shorewall to apply the changes.
# Agents
The agents included work with Route53 and AWS Security Groups. Though you can use these as baselines for creating any other kind of agents for your own needs, these agents are fully functional for the purposes they were designed as-is.

View file

@ -3,8 +3,8 @@ Description=Updates IPv4 with external DNS
Wants=dynamic-ip.timer
[Service]
EnvironmentFile=/etc/sysconfig/dynamic-ip-update
ExecStart=/etc/dynamic-ip/update-ipv4 ${DOMAIN_NAME}
EnvironmentFile=/etc/sysconfig/dynamic-ip
ExecStart=/etc/dynamic-ip/dynamic-ip update-ipv4 ${DOMAIN_NAME}
[Install]
WantedBy=dynamic-ip-update.target

View file

@ -3,8 +3,8 @@ Description=Updates IPv6 with external DNS
Wants=dynamic-ip.timer
[Service]
EnvironmentFile=/etc/sysconfig/dynamic-ip-update
ExecStart=/etc/dynamic-ip/update-ipv6 ${DOMAIN_NAME}
EnvironmentFile=/etc/sysconfig/dynamic-ip
ExecStart=/etc/dynamic-ip/dynamic-ip update-ipv6 ${DOMAIN_NAME}
[Install]
WantedBy=dynamic-ip-update.target