Bug 711337 - initctl reload-configuration does not reload /etc/init/tty.conf
Summary: initctl reload-configuration does not reload /etc/init/tty.conf
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: upstart
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Lukáš Nykrýn
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-07 08:58 UTC by Petr Pisar
Modified: 2015-10-13 13:53 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-13 13:53:56 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Petr Pisar 2011-06-07 08:58:22 UTC
upstart-0.6.5-10.el6.x86_64

I've edited /etc/init/tty.conf to add other argument to mingetty. Then I killed mingetty on TTY1.

According to initctl(8), upstart should notice configuration change using automatically, but subsequent list of running processes with arguments (ps w) shows the mingetty has been started with old configuration.

I called `initctl realod-configuration' and tried again. Without success.

Only reboot helped to take effect the new configuration.

Comment 2 Petr Lautrbach 2011-06-09 14:29:32 UTC
Job classes are not reloaded if there are running its instances. tty job class has 6 instances by default:

tty (/dev/tty1) start/running, process 1386
tty (/dev/tty2) start/running, process 1388
tty (/dev/tty3) start/running, process 1390
tty (/dev/tty4) start/running, process 1392
tty (/dev/tty5) start/running, process 1394
tty (/dev/tty6) start/running, process 1396

In this case, you need first stop all instaces of tty:
# eval `grep ACTIVE_CONSOLES /etc/sysconfig/init`

# for tty in $ACTIVE_CONSOLES; do stop tty TTY=$tty; done

edit /etc/init/tty.conf

# start start-ttys
or
# for tty in $ACTIVE_CONSOLES; do start tty TTY=$tty; done

Comment 3 Petr Pisar 2011-06-10 08:38:50 UTC
That works. Thanks for help.

I think a notice at reload-configuration in initctl(8) manual page would be great.

Comment 4 RHEL Program Management 2011-07-06 00:06:42 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.


Note You need to log in before you can comment on or make changes to this bug.