- add
ipaddr.pyto/home/root/and runchmod +x ipaddr.py - Add
ipaddr.serviceto/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
$ rebootand wait a few minutes (to allow for potential restarts)