Archive
Archive for March, 2020
restoring rc.local with systemd
March 2, 2020
Comments off
To enable rc.local on a Debian 10 new install you must add the following to /etc/systemd/system. Name the file 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 After adding the above to enable rc.local execute systemctl enable rc.local.service. You then should be able to utilize /etc/rc.local. This should return rc.local functionality.
Categories: sysadmin