Run file at boot.

Hello. I want to run a pythonfile at boot, but I can’t find the rc.local file in /etc/ and Ive read on google that volumio overwrites it anyways.

How should I proceed if I want to run a python file at boot?


I think the best way is to create a systemd service and enable it. Search the web

I ran into the same problem so I want to execute sudo LCD35-show in /boot/ folder but i cant access the file because the file has this restrictions

-rw-rw-rw- 1 root root   250 Jul 29 15:44 LCD-hdmi
-rw-rw-rw- 1 root root   409 Jul 29 15:46 LCD28-show
-rw-rw-rw- 1 root root   409 Jul 29 15:42 LCD32-show
-rw-rw-rw- 1 root root   406 Jul 29 15:42 LCD35-show
-rw-rw-rw- 1 root root   325 Jul 29 15:43 LCD397-show
-rw-rw-rw- 1 root root   323 Jul 29 15:43 LCD43-show
-rw-rw-rw- 1 root root   321 Jul 29 15:41 LCD5-show
-rw-rw-rw- 1 root root   215 Jul 29 15:41 LCD7B-show
-rw-rw-rw- 1 root root   216 Jul 29 15:42 LCD7C-show

and when i made an chmod or chown nothing changes

Have anyone ideas what i could do