Bug#374039: shutdown behavior (Was: Addressing more sysvinit bugs)

2019-02-21 Thread Dmitry Bogatov


control: tags -1 +upstream

[2018-11-15 13:20] Jesse Smith 
> On 11/14/18 10:54 PM, Benda Xu wrote:
> > Hi Jesse,
> > 
> > Jesse Smith  writes:
> > 
> >> 374039 (I think the reporter is confusing initscripts (init.d) with the
> >> sysvinit programs as they're mixing up script variables with sysvinit
> >> manual pages. Can close this report.)
> > 
> > Jidanni's concern is in the shutdown(8) manpage.
> > 
> > 1. `shutdown` is no longer a script. The manpage should reflect that.
> > 
> > 2. INIT_HALT is handled in /etc/init.d/halt, not /sbin/halt.
> > 
> > 3. use `shutdown -h -H` with caution.  I don't have a clue.
> > 
> > 4. It is not interesting to mention "Debian Sarge" in manpage anymore.
> > 
> > 
> > It would be great if they could be addressed upstream.
> > 
> > Yours,
> > Benda
> > 

As of sysvinit=2.93, I believe

> 1. The man page doesn't refer to shutdown as a script, it is talking
> about the scripts init calls to shutdown the system. This is a bit
> confusing as the shutdown program shutdowns the system and gets init to
> call a series of shutdown scripts. (Really, it is a matter of using the
> same term to refer to multiple things.) I'll try to clear up the manual
> page by using other terms.

this concern was addressed and everything is fine.

> 2. Yes, INIT_HALT is checked in /etc/init.d/halt, but that script then
> calls /sbin/halt. Again, this is a case of everything having the same
> name. It looks like the man page is correct, just confusing because so
> many things are called "halt".

this is described fine in manual.

> 3. I'm not sure to what this refers.

Behaviour of `shutdown -h -H` is very strange. "Halt action is to halt
or drop into boot monitor on systems that support it." is not enough to
convey, that in many cases it brings machine into state, when it is
still on, display still showing letters, but no interation (except
physical poweroff) is possible.

Maybe -H is actually produces useful behaviour in some cases (no idea),
but please add into manpage warning like "Do not use -H option, unless
you really know what are you doing."

> 4. Agreed, I will remove the Sarge reference as it is very dated.

I see. It is gone. Wonderful.
-- 
Note, that I send and fetch email in batch, once every 24 hours.
 If matter is urgent, try https://t.me/kaction
 --



Bug#374039: shutdown behavior (Was: Addressing more sysvinit bugs)

2018-11-14 Thread Benda Xu
Hi Jesse,

Jesse Smith  writes:

> 374039 (I think the reporter is confusing initscripts (init.d) with the
> sysvinit programs as they're mixing up script variables with sysvinit
> manual pages. Can close this report.)

Jidanni's concern is in the shutdown(8) manpage.

1. `shutdown` is no longer a script. The manpage should reflect that.

2. INIT_HALT is handled in /etc/init.d/halt, not /sbin/halt.

3. use `shutdown -h -H` with caution.  I don't have a clue.

4. It is not interesting to mention "Debian Sarge" in manpage anymore.


It would be great if they could be addressed upstream.

Yours,
Benda



Bug#374039: shutdown behavior (Was: Addressing more sysvinit bugs)

2018-11-15 Thread Jesse Smith
On 11/14/18 10:54 PM, Benda Xu wrote:
> Hi Jesse,
> 
> Jesse Smith  writes:
> 
>> 374039 (I think the reporter is confusing initscripts (init.d) with the
>> sysvinit programs as they're mixing up script variables with sysvinit
>> manual pages. Can close this report.)
> 
> Jidanni's concern is in the shutdown(8) manpage.
> 
> 1. `shutdown` is no longer a script. The manpage should reflect that.
> 
> 2. INIT_HALT is handled in /etc/init.d/halt, not /sbin/halt.
> 
> 3. use `shutdown -h -H` with caution.  I don't have a clue.
> 
> 4. It is not interesting to mention "Debian Sarge" in manpage anymore.
> 
> 
> It would be great if they could be addressed upstream.
> 
> Yours,
> Benda
> 


1. The man page doesn't refer to shutdown as a script, it is talking
about the scripts init calls to shutdown the system. This is a bit
confusing as the shutdown program shutdowns the system and gets init to
call a series of shutdown scripts. (Really, it is a matter of using the
same term to refer to multiple things.) I'll try to clear up the manual
page by using other terms.

2. Yes, INIT_HALT is checked in /etc/init.d/halt, but that script then
calls /sbin/halt. Again, this is a case of everything having the same
name. It looks like the man page is correct, just confusing because so
many things are called "halt".

3. I'm not sure to what this refers.

4. Agreed, I will remove the Sarge reference as it is very dated.

- Jesse