WAN IPv4 checker & email notifier for computers behind dynamic IP/DHCP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
574 B

6 years ago
6 years ago
  1. # Should be placed to /usr/lib/systemd/user/
  2. ####
  3. # Usage
  4. # systemctl --user enable wanip-checker@<username>.service && \
  5. # systemctl --user start wanip-checker@<username>.service && \
  6. # systemctl --user daemon-reload
  7. [Unit]
  8. Description=WAN IPv4 checker & email sender for dynamic IPv4 server environments
  9. After=network-online.target
  10. [Service]
  11. ExecStart=/usr/bin/bash /home/%i/wanip-checker.sh
  12. # Restart (check) every 20 minutes (1200 seconds)
  13. RestartSec=1200
  14. Restart=always
  15. # Emailing fails if this is enabled
  16. #NoNewPrivileges=true
  17. [Install]
  18. WantedBy=default.target