Monday, June 27, 2022

CARA MENGAKTIFKAN RC.LOCAL DI RHEL


  • Cek status rc.local apakah sudah aktif atau belum

# systemctl status rc-local

â rc-local.service - /etc/rc.d/rc.local Compatibility

   Loaded: loaded (/usr/lib/systemd/system/rc-local.service; static; vendor preset: disabled)

   Active: inactive (dead)

( apabila muncul pesan diatas berarti rc.local belum aktif )


  • Jalankan perintah ini 

# chmod +x /etc/rc.d/rc.local

# systemctl daemon-reload

# systemctl enable rc-local

# systemctl start rc-local


  • Cek kembali status rc.local nya

# systemctl status rc-local

â rc-local.service - /etc/rc.d/rc.local Compatibility

   Loaded: loaded (/usr/lib/systemd/system/rc-local.service; static; vendor preset: disabled)

   Active: active (exited) since Mon 2022-06-27 15:02:04 WIB; 9s ago

  Process: 21348 ExecStart=/etc/rc.d/rc.local start (code=exited, status=0/SUCCESS)

( apabila muncul seperti diatas, berarti rc.local sudah aktif )


*) Petunjuk diatas sudah saya coba di rhl 7.3 dan jalan.