/etc/rc.local

Created 2023-06-22

sudo vim /etc/rc.local

#!/bin/sh
# add your commands 
# call your scripts here
 
# last line must be exit 0 
exit 0

sudo chmod -v +x /etc/rc.local

systemd enable

sudo systemctl is-enabled rc-local.service
sudo systemctl status rc-local.service

sudo systemctl enable rc-local.service
sudo systemctl start rc-local.service
sudo systemctl status rc-local.service
sudo systemctl cat rc-local.service  # see service configuration