Linux: file /etc/rc.local

From OnnoWiki
Revision as of 09:32, 2 May 2018 by Onnowpurbo (talk | contribs) (Created page with "Di ubuntu baru tampaknya /etc/rc.local di buang .. ==Cek== Untuk mencek apakah /etc/rc.local akan di eksekusi sudo systemctl edit --full rc-local Akan keluar, antara lain...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Di ubuntu baru tampaknya /etc/rc.local di buang ..

Cek

Untuk mencek apakah /etc/rc.local akan di eksekusi

sudo systemctl edit --full rc-local

Akan keluar, antara lain

# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.local is executable.

Artinya kalau ada /etc/rc.local akan di eksekusi kalau di ijinkan.

Buat /etc/rc.local

touch /etc/rc.local
chmod +x /etc/rc.local