I have been working with a Raspberry Pi running Ubuntu Mate 16.04. I am doing a straight forward advertiseURL and the code works well when running from a bash file, either under nodejs or pm2. However when I try running the script in a crontab on @reboot, the beacon does not turn on. I have done a sudo setcap cap_net_raw+eip $(eval readlink -f which node) so that I can run without sudo.
I don't see where/how I can generate an error indicator or message to see what the problem is, so:
-
How to verify if the advertiseURL has worked, that advertising has started, and to generate an exception if not?
-
Any idea why the script would not work in a crontab?
I have been working with a Raspberry Pi running Ubuntu Mate 16.04. I am doing a straight forward advertiseURL and the code works well when running from a bash file, either under nodejs or pm2. However when I try running the script in a crontab on @reboot, the beacon does not turn on. I have done a sudo setcap cap_net_raw+eip $(eval readlink -f
which node) so that I can run without sudo.I don't see where/how I can generate an error indicator or message to see what the problem is, so:
How to verify if the advertiseURL has worked, that advertising has started, and to generate an exception if not?
Any idea why the script would not work in a crontab?