Created
March 10, 2020 13:33
-
-
Save phackwer/863246d4f05f1aa86786b59106a943fc to your computer and use it in GitHub Desktop.
Enable /etc/rc.local
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo gedit /etc/systemd/system/rc-local.service | |
Then add the following content to it. | |
[Unit] | |
Description=/etc/rc.local Compatibility | |
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 | |
Now run | |
sudo systemctl enable rc-local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment