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: | Eric Oulashin |
|---|---|
| Location: | Beaverton, Oregon, USA |
| Users: | 122 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 07:15:07 |
| Calls: | 9,714 |
| Calls today: | 4 |
| Files: | 9,589 |
| D/L today: |
401 files (428M bytes) |
| Messages: | 435,275 |
| Posted today: | 6 |