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

by Vivek Gite on June 25, 2008 · 4 comments

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.

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 4 comments… read them below or add one }

1 Gokdeniz Karadag June 25, 2008

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

Reply

2 santhosh kumar theyyan June 26, 2008

init q should do the same

Reply

3 franklin August 30, 2008

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

Reply

4 kevin August 30, 2011

init audio device fails to run , anyone can tell me what i may do to fix this

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 3 + 7 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: