Yes, can confirm /etc/rc.local does work under bookworm. My custom rpi imaging script uses it on first boot then changes it thereafter to this..I installed pi23 this morning, albeit off 2023-10-10-raspios-bookworm-arm64.img.xz (reasons) and just goes to show how many things are on my "2do" list. ![Wink ;-)]()
I'm probably wrong but doesn't hurt to pose the question: has rc.local service been depreciated since then to default disabled? Stick "touch/tmp/z" in it.
It would be nice to know. I really ought to change all my rc.local stuff to systemd but if I can put that job off..
Code:
foo@pi23:/wrk $ sudo systemctl status rc-local | cat× rc-local.service - /etc/rc.local Compatibility Loaded: loaded (/lib/systemd/system/rc-local.service; enabled-runtime; preset: enabled) Drop-In: /usr/lib/systemd/system/rc-local.service.d └─debian.conf Active: failed (Result: exit-code) since Wed 2024-02-28 15:31:12 GMT; 2h 34min ago Docs: man:systemd-rc-local-generator(8) Process: 1110 ExecStart=/etc/rc.local start (code=exited, status=127) CPU: 6msFeb 28 15:31:12 pi23 systemd[1]: Starting rc-local.service - /etc/rc.local Compatibility...Feb 28 15:31:12 pi23 rc.local[1110]: My IP address is 192.168.1.26Feb 28 15:31:12 pi23 rc.local[1116]: /usr/local/sd/bin/svr-fw: 109: iptables-restore: not foundFeb 28 15:31:12 pi23 rc.local[1116]: /usr/local/sd/bin/svr-fw: 110: iptables: not foundFeb 28 15:31:12 pi23 systemd[1]: rc-local.service: Control process exited, code=exited, status=127/n/aFeb 28 15:31:12 pi23 systemd[1]: rc-local.service: Failed with result 'exit-code'.Feb 28 15:31:12 pi23 systemd[1]: Failed to start rc-local.service - /etc/rc.local Compatibility.I'm probably wrong but doesn't hurt to pose the question: has rc.local service been depreciated since then to default disabled? Stick "touch/tmp/z" in it.
It would be nice to know. I really ought to change all my rc.local stuff to systemd but if I can put that job off..
Never put off 'til tomorrow that which can be put off 'til next week - and if it can be put off 'til next week it probably wasn't worth doing at all!
Statistics: Posted by swampdog — Wed Feb 28, 2024 6:41 pm