/etc/systemd/system/rc-local.service
[Unit] Description=/etc/rc.local ConditionPathExists=/etc/rc.local [Service] Type=forking ExecStart=/etc/rc.local start TimeoutSec=0 StandardOutput=tty RemainAfterExit=yes SysVStartPriority=99 [Install] WantedBy=multi-user.target
/etc/rc.local
#!/bin/sh -e # # rc.local # # Your commands here, without the # : ) # # exit 0 --
chmod +x /etc/rc.local
systemctl start rc-local.service
systemctl status rc-local.service