Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5100

Raspberry Pi OS • Re: Can't get a script to run on shutdown (Systemd) pi5 bookworm

$
0
0
How are you accessing the output of journalctl on reboot? That looks like a useful place to look but mine disappears on reboot.
For others (since you got it...)

Code:

bls@p43~> journalctl --list-bootsIDX BOOT ID                          FIRST ENTRY                 LAST ENTRY                  -6 dc998595d8ae45f1bf7dc6f6579d94da Wed 2025-01-01 07:42:45 PST Wed 2025-01-01 07:49:42 PST -5 e2ef0a4ea24649dfbfa36f705b1689d3 Wed 2025-01-01 07:49:41 PST Wed 2025-01-01 07:52:16 PST -4 f8c48a3e18b44b28ad52c6659dda79d0 Wed 2025-01-01 07:52:16 PST Wed 2025-01-01 07:55:47 PST -3 f96d73c367884eecad16fc191d5d4868 Wed 2025-01-01 07:55:46 PST Wed 2025-01-01 07:56:45 PST -2 1b4fa5077c8a4ac1955ad192b914722f Wed 2025-01-01 07:56:45 PST Wed 2025-01-01 07:57:43 PST -1 038e993f81e14956b047a81d105a82d5 Wed 2025-01-01 07:57:43 PST Wed 2025-01-01 07:59:07 PST  0 3d86a67e237f4e4884bab418ce6442a9 Wed 2025-01-01 07:59:07 PST Wed 2025-01-01 09:09:39 PSTbls@p43~> journalctl -b -1   # Display the journal for the boot before this onebls@p43~> journalctl -b -6   # Display the journal for the 6th previous boot of the system)bls@p43~> journalctl -b      # Display the journal for only this system bootbls@p43~> journalctl         # Display the entire journal (all system boots)[code]

Statistics: Posted by bls — Wed Jan 01, 2025 5:13 pm



Viewing all articles
Browse latest Browse all 5100

Trending Articles