- add
ipaddr.py
to/home/root/
and runchmod +x ipaddr.py
- Add
ipaddr.service
to/lib/systemd/system
(note: lib not etc) - test it:
$ systemctl daemon-reload
$ systemctl start ipaddr.service
$ systemctl status ipaddr.service
- make it run on startup:
$ systemctl enable ipaddr.service
- open gmail, run
$ reboot
and wait a few minutes (to allow for potential restarts)