Skip to content

Instantly share code, notes, and snippets.

@phackwer
Created March 10, 2020 13:33
Show Gist options
  • Save phackwer/863246d4f05f1aa86786b59106a943fc to your computer and use it in GitHub Desktop.
Save phackwer/863246d4f05f1aa86786b59106a943fc to your computer and use it in GitHub Desktop.
Enable /etc/rc.local
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