Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. # /etc/systemd/system/cloudflare-ddns.service
  2.  
  3. [Unit]
  4. Description=Zerotier DDNS Client
  5. Wants=network-online.target
  6. After=network.target
  7.  
  8. [Service]
  9. Type=oneshot
  10. Environment=ZONE=bla.com
  11. Environment=HOST=zt.blah.com
  12. Environment=USE_DYNAMIC_HOSTNAME=true
  13. Environment=API=yourcoolapikey
  14. Environment=PROXY=false
  15. Environment=FORCE_CREATE=true
  16. Environment=MASTER_API_KEY=false
  17. Environment=ZEROTIER_NETWORK_ID=somenetworkid
  18. ExecStart=/usr/local/bin/update-zerotier-ddns.sh
  19.  
  20. # don't use 'nobody' if your script needs to access user files
  21. # (if User is not set the service will run as root)
  22. #User=nobody
  23.  
  24. # Useful during debugging; remove it once the service is working
  25. #StandardOutput=console
  26. StandardOutput=journal+console
  27.  
  28. [Install]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement