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: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 498678:33:31 |
| Calls: | 212 |
| Calls today: | 3 |
| Files: | 912 |
| D/L today: |
31 files (22,593K bytes) |
| Messages: | 69,867 |