----------------------------------------------------------------------------------
@MSGID: 3:633/10 dc18f52d
@REPLY: 3:633/10 79fe2f79
@PID: PyGate 1.5.19
@TID: PyGate/Linux 1.5.19
@NOTE: Pan/0.165 (Kostiantynivka)
@CHRS: ASCII 1
@TZUTC: 1100
@REPLYADDR: ldo@nz.invalid
@REPLYTO: 3:633/10 UUCP
@RFC-Message-ID: <11d56us$8idc$3@dont-email.me>
On Thu, 12 Nov 2026 13:34:27 +0000, NY wrote:
> 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.
What exactly is the error?
> 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.
I would do this via a systemd service definition. That provides
automatic monitoring and restarting if/when it crashes (up to some
reasonable limit, to guard against endless loops). And any error
messages should appear in the journal as well.
--- PyGate Linux v1.5.19
* Origin: Dragon`s Lair, PyGate NNTP<>Fido Gate (3:633/10)
SEEN-BY: 19/10 50/109 153/757 218/840 840 220/70 221/1 6 360 226/17 100
SEEN-BY: 229/426 240/1120 267/800 301/1 113 812 310/31 335/364 341/66 463/68
SEEN-BY: 550/278 633/10 280 281 416 418 420 422 509 2744 712/848 770/1 3 100
SEEN-BY: 770/340 772/210 220 230 5001/100 5005/49 5020/715 848 1042 4441 12000
SEEN-BY: 5023/24 5030/49 722 1081 1474 5051/44 5061/133 5064/56 5075/128
@PATH: 633/10 280 770/1 218/840 221/6 301/1 5020/1042 4441 715