Hi there, I just got my BBB and have created a python script that waits until the BBB can see the internet and then sends an email to sms to tell me what the IP on eth0 is.
The script works fine when run from the command line, but when I created a systemd service to launch it at boot it seems to run the script 10-15 times. Which, as you can guess is pretty annoying. It runs out on its own eventually and issuing a stop does not seem to help.
Here is a chunk of the log file from journalctl, if you want to see the code let me know.
Jan 01 01:27:10 beaglebone sendip[676]: Successfully sent email
Jan 01 01:27:11 beaglebone sendip[678]: Successfully sent email
Jan 01 01:27:12 beaglebone sendip[680]: Successfully sent email
Jan 01 01:27:12 beaglebone sendip[682]: Successfully sent email
– Reboot –
Jan 01 01:54:01 beaglebone sendip[132]: Successfully sent email
Jan 01 01:54:08 beaglebone sendip[362]: Successfully sent email
Jan 01 01:54:10 beaglebone sendip[429]: Successfully sent email
Jan 01 01:54:12 beaglebone sendip[439]: Successfully sent email
Jan 01 01:54:14 beaglebone sendip[446]: Successfully sent email
Jan 01 01:54:17 beaglebone sendip[455]: Successfully sent email
Jan 01 01:54:22 beaglebone sendip[492]: Successfully sent email
Jan 01 01:54:25 beaglebone sendip[495]: Successfully sent email
Jan 01 01:54:26 beaglebone sendip[519]: Successfully sent email
Any thoughts? I know the time is not set yet, that is the next thing I am going to work on.
Thanks.