Skip to content

Failure to start beacon from crontab on reboot. #48

@mike-pun

Description

@mike-pun

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:

  1. How to verify if the advertiseURL has worked, that advertising has started, and to generate an exception if not?

  2. Any idea why the script would not work in a crontab?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions