1. Boot
Add commands to /etc/rc.d/rc.local and make it executable:
chmod +x /etc/rc.d/rc.local
2. Shutdown
Use /etc/rc.d/rc.local_shutdown for cleanup:
chmod +x /etc/rc.d/rc.local_shutdown
3. Logs
Redirect output to a file for troubleshooting.
4. Test
Reboot and verify logs.
Quick checklist
[ ] Steps completed
[ ] Config updated
[ ] Service tested
[ ] Restart/rollback ready
[ ] Logs checked