Make /etc/inittab changes effective without rebooting Linux server

by Vivek Gite on June 11, 2007 · 1 comment

Q. I run a Linux webserver and down time is not an option for me. Now I I made some changes to my /etc/inittab file. How do I make those changes effective without rebooting my Debian Linux server?

A. The inittab file describes which processes are started at bootup and during normal operation (e.g. /etc/init.d/boot, /etc/init.d/rc, gettys...). Init distinguishes multiple runlevels, each of which can have its own set of processes that are started. Valid runlevels are 0-6 plus A, B, and C for ondemand entries.

telinit or init q option

You need to use /sbin/telinit command. It takes a one-character argument and signals init to perform the appropriate action. Q or q tell init to re-examine the /etc/inittab file.

To make changes to the /etc/inittab effective without a reboot, use init or telinit as follows:
# init q
OR
# telinit q

Featured Articles:

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

{ 1 comment… read it below or add one }

1 Aleksey Fedotov June 24, 2011

Also can be accomplished by sending SIGHUP to the init process:

# kill -1 1

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 13 + 3 ?
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: