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: | KrAAB |
|---|---|
| Location: | Donna, TX |
| Users: | 4 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 171:17:03 |
| Calls: | 57,180 |
| Files: | 3,971 |
| D/L today: |
26 files (9,999K bytes) |
| Messages: | 61,529 |