Latest PI-OS ... Root Crontab @reboot Suddenly Doesn't Work
From
c186282@3:633/10 to
All on Sunday, November 01, 2026 03:36:51
Had to re-install a unit, runs ONE Python app on restart.
Pi4. latest OS release + updates.
Auto-Starting has often been a pain in the ass with Linux.
Easiest fix, an "@reboot" entry in root crontab.
Well, suddenly, that doesn't work at all. Text
copied from previous, working, install.
Tried a systemd entry ... the initial, very simple,
tried and true, entry didn't work either. Starts,
but crashes about 30 seconds later with unhelpful
logs.
MIGHT just be a wonky install. Did NOT complicate things
initially. No obvious issues. It's THIS weeks release,
plus latest updates, so maybe a bug, or maybe a nasty TREND.
Finally had to install the LXDE utils for auto-starting.
DID work - but also had to install, it wasn't there by
default for PIs.
The old fix of manually creating a ".config/lxsession/LXDE/autostart"
did NOT work - but then PiOS is a kinda cut-down LXDE.
SSHD and TightVNCServer work fine.
The app now starts and works - well, for five or
ten minutes anyway. Gotta check the code a little,
there are some hangup-detection bits in there
that may encourage it to crash out (then LXDE
will restart it quick enough for my needs).
Shows cameras and some environmental stuff
in a rotating fashion, mostly OpenCV fun.
Anyway, of most concern, the @reboot stuff. I often
use root crontab to simply/easily start a bunch of
stuff at boot. Far easier than systemd shit.
Yea yea ... PIs aren't intended to be "full computers".
But STILL ....... all this stuff USED to work ......
have the developers "improved" us into oblivion
once again ?
Main REASON for the re-do ... super shitty wifi in
the back room. The app accesses a number of devices
over wifi and, esp after powering-up StarLink, the
connection has become much worse. Added a USB wifi
antenna - better and more positionable - and it
works much better, 40% signal became 75% (note
that 2.4ghz is better with walls/barriers than 5ghz)
Alas the wifi got lost initially, so figured it'd
just be best to just re-do the unit and install
networkmanager to deal with the USB unit. THEN
the mystery 'changes'.
--- PyGate Linux v1.5.19
* Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)