I've got a Pi running Raspberry Pi OS Bookworm. I've been starting a
NODE app (not mine - one that I've downloaded) from a cron job and
using one of the start-at-boot mechanisms (I forget which!).
This has worked until did a "sudo apt update" and "sudo apt upgrade".
Now the cron job fails to start the app, even though an explicit
background job works from a terminal window.
The script runs fine - all the logging stuff is OK. But it seems
that "node" does not like running as a background job any more when
invoked from a cron job as opposed to a terminal session.
The reason it's run from a cron job is that it has a habit of
crashing every so often (no idea why, and writer of the app doesn't
reply to emails) so I run it from cron every 5 minutes to restart it
if it has stopped.
| Sysop: | deepend |
|---|---|
| Location: | Calgary, Alberta |
| Users: | 326 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 88:34:02 |
| Calls: | 2,755 |
| Files: | 6,698 |
| D/L today: |
14 files (10,291K bytes) |
| Messages: | 498,142 |