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.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 7 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
7 comments… add one
  • Gokdeniz Karadag Jun 25, 2008 @ 13:04

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

  • santhosh kumar theyyan Jun 26, 2008 @ 12:49

    init q should do the same

  • franklin Aug 30, 2008 @ 14:01

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

  • kevin Aug 30, 2011 @ 3:05

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

  • bhaskar Aug 11, 2013 @ 7:44

    hi i done changes in runlevel 3 to 5 in /etc/inittab file.
    after rebooting my pc is not booting

  • Hakim Sep 9, 2013 @ 2:33

    Hi all…
    i’ve got the same problem, after installing RHEL 5 i to dell PE 1750 server for testing, it only boot to CLi and no GUI, i run startx it goes to GUI but after i reboot the server it goes to CLI again, somebody can help me through this problem… I just migrate from wintel team to unix team at my company, still have a lot to learn

  • Tarunika Shrivastava Sep 22, 2014 @ 5:52

    Its not working.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum