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

# Should be placed to /usr/lib/systemd/user/
####
# Usage
# systemctl --user enable wanip-checker@<username>.service && \
# systemctl --user start wanip-checker@<username>.service && \
# systemctl --user daemon-reload
[Unit]
Description=WAN IPv4 checker & email sender for dynamic IPv4 server environments
After=network-online.target
[Service]
ExecStart=/usr/bin/bash /home/%i/wanip-checker.sh
# Restart (check) every 20 minutes (1200 seconds)
RestartSec=1200
Restart=always
# Emailing fails if this is enabled
#NoNewPrivileges=true
[Install]
WantedBy=default.target