Skip to content

Instantly share code, notes, and snippets.

@Kitsunetic
Created October 2, 2020 11:12
Show Gist options
  • Save Kitsunetic/df7d34d9e789b1ca18e630a1e0a824cd to your computer and use it in GitHub Desktop.
Save Kitsunetic/df7d34d9e789b1ca18e630a1e0a824cd to your computer and use it in GitHub Desktop.
activate rc.local on 18.04

Edit /etc/rc.local

sudo chmod +x /etc/rc.local

Update /lib/systemd/system/rc-local.service

[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no
 
[Install]
WantedBy=multi-user.target

Enable service

sudo systemctl start rc-local
sudo systemctl status rc-local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment