Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add systemd unit file for non docker users. #139

Merged
merged 10 commits into from
Jul 28, 2022
19 changes: 19 additions & 0 deletions contrib/cloudflare.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[Unit]
Description=Cloudflare DNS Updater
Documentation=https://github.com/favonia/cloudflare-ddns/blob/main/README.markdown
Requires=network-online.target
After=network-online.target

[Install]
WantedBy=multi-user.target

[Service]
Type=simple
EnvironmentFile=/etc/cloudflare-ddns/cloudflare.service.env
Delegate=yes
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
Restart=always
User=ddns
ExecStart=/usr/local/bin/ddns
3 changes: 3 additions & 0 deletions contrib/cloudflare.service.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
IP6,IP4
CF_API_TOKEN=YOUR-CLOUDFLARE-API-TOKEN
DOMAINS=example.org,www.example.org,example.io