Como administrador, edite ou crie o arquivo /etc/systemd/system/rc-local.service
Cole dentro dele isso:
Code: Select all
[Unit]
Description=rc.local sem frescura e a moda antiga
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
Code: Select all
#!/bin/sh
Code: Select all
chmod +x /etc/rc.local
Code: Select all
systemctl enable rc-local