(contributed by Brandon @skarekrow)
To use:
-
Copy the shipped rc.d script into
/etc/rc.d/
-
The
rc.d
script assumes a user called_cloudflare_ddns
will be used. This is easily created by usinguseradd
useradd -s /sbin/nologin -d /var/empty _cloudflare_ddns
-
Create a
/etc/login.conf
entry for the daemon, specifying the environment variables you wish to use:cloudflare_ddns:\ :setenv=EMOJI=false,CLOUDFLARE_API_TOKEN=YOUR-CLOUDFLARE-API-TOKEN,DOMAINS=YOUR-DOMAINS:\ :tc=daemon:
An important note is not to quote any of the values, as those will be literally interpreted. In this example
EMOJI
is false as the emojis clutter up the logs you will find of the daemon at/var/log/daemon
-
Enable the daemon with
rcctl
,rcctl enable cloudflare_ddns