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

by Vivek Gite [Last updated: June 25, 2008]

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.

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 3 comments… read them below or add one }

1 Gokdeniz Karadag 06.25.08 at 1:04 pm

The more robust way to do this is to use
telinit q

2 santhosh kumar theyyan 06.26.08 at 12:49 pm

init q should do the same

3 franklin 08.30.08 at 2:01 pm

hai
In redhat os we have already configured with runlevel 5 but automatically goes to single usermode
plz ans anyone

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Tagged as: , , , , , , , ,

Previous post: FreeBSD cvsup: Update The FreeBSD From Previous Releases Using Source Code

Next post: Linux CD / DVD Locked and Drive Is Not Opening / Ejecting CD