Rc.local ubuntu 20.04
Cek Status rc.local
sudo systemctl status rc-local
sudo systemctl enable rc-local
Buat rc-local unit file
sudo nano /etc/systemd/system/rc-local.service
[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
Buat rc.local script file
sudo nano /etc/rc.local
#!/bin/bash exit 0
Berikan hak akses executible permission
sudo chmod +x /etc/rc.local
sudo systemctl enable rc-local sudo systemctl start rc-local.service sudo systemctl status rc-local.service
No comments:
Post a Comment