# Should be placed to /usr/lib/systemd/user/ #### # Usage # systemctl --user enable wanip-checker@.service && \ # systemctl --user start wanip-checker@.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