Bug 46223 - "telinit s", "telinit 1" don't work properly
Summary: "telinit s", "telinit 1" don't work properly
Status: CLOSED DUPLICATE of bug 54865
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: SysVinit   
(Show other bugs)
Version: 1.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2001-06-27 13:56 UTC by Jonathan Kamens
Modified: 2014-03-17 02:21 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-11-06 17:23:32 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Jonathan Kamens 2001-06-27 13:56:10 UTC
I believe that both "telinit s" and "telinit 1" are supposed to shut down
all multi-user processes, by calling shutdown scripts and then sending them
kill signals, and then start a single-user shell on the console.  I believe
that both "telinit s" and "telinit 1" did this properly in the past,
although my recollection may be flawed.  Neither of them works properly

First of all, "telinit s" doesn't call any of the shutdown scripts; I'm not
sure whether it sends the kill signals that it's supposed to.  But I doubt
it, because after running it, both the single-user shell and the multi-user
shell from which I did the "telinit s" are running on the console at the
same time!  This makes it rather difficult to type commands, since the two
shells running on the same tty compete for who gets the input.

When I run "telinit 1" instead of "telinit s", all the shutdown scripts get
called, but again, my multi-user shell remains running on the console after
the single-user shell is started.

I suspect that "telinit s" isn't supposed to run the shutdown scripts while
"telinit 1" is, but both of them are supposed to send kill signals to all
the outstanding processes before starting the single-user shell, and
neither of them is doing that right now, and that's the bug.

Comment 1 Bill Nottingham 2001-07-30 17:52:23 UTC
Fixed in util-linux-2.11f-6. (Alternatively, downgrade to util-linux previous
to 2.11.)  login was calling setsid() before exec()ing the shell, and it really
shouldn't do that.

Comment 2 Jonathan Kamens 2001-11-06 17:17:33 UTC
This bug (i.e., you have two shells running on your TTY at the same time after
doing "telinit 1") is back in util-linux-2.11f-15.  Grr.

Comment 3 Bill Nottingham 2001-11-06 17:23:04 UTC

*** This bug has been marked as a duplicate of 55545 ***

Comment 4 Bill Nottingham 2001-11-06 17:24:18 UTC

*** This bug has been marked as a duplicate of 54865 ***

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