Restart / Update init Configuration File /etc/inittab After Changes Without Rebooting Server

Q. I’ve made changes / updates to my /etc/inittab file to configure init process to start with agetty. init reads the /etc/inittab configuration file at the time of system boot. How do I re-read this file without rebooting my Linux server?

A. You need to send HUP single to init process to re-read /etc/inittab on fly using kill command. This is the only way to avoid reboot and make changes to the init configuration take effect immediately.

kill command to send HUP single

Type the command as follows after updating /etc/inittab, enter:
# kill -HUP 1
Please note that init runs as a daemon and typically always has PID 1 on many UNIX / Linux like systems.

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.