NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/57656: /sbin/shutdown prints message twice



Logged in from Mac via ssh.
Problem seems to be the -D flag to /sbin/shutdown. Without it, I only get the messages once. See below.



bjjl@lion[pts/0]<~>% w bjjl                                            (0) 17:30
 5:30PM  up  3:47, 1 user, load averages: 0.01, 0.02, 0.00
USER     TTY     FROM                        LOGIN@  IDLE WHAT
bjjl     pts/0   dynamic-2a01-0c22-d1ef-e40  3:35PM     0 w bjjl 

bjjl@lion[pts/0]<~>% who                                               (0) 17:30
bjjl     pts/0    Oct 13 15:35 (2a01:c22:d1ef:e400:b1f7:490:aa0:7d64)

bjjl@lion[pts/0]<~>% mesg                                              (0) 17:32
is n

bjjl@lion[pts/0]<~>% write bjjl                                        (1) 17:33
write: You have write permission turned off; no reply possible
write: bjjl has messages disabled

bjjl@lion[pts/0]<~>% stty -a                                           (0) 17:33
speed 9600 baud; 26 rows; 81 columns; queue = 1024; line = termios;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
-echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
-extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
brkint -inpck -ignpar -parmrk
oflags: opost onlcr -ocrnl -oxtabs -onocr -onlret
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -mdmbuf
-cdtrcts
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T;
stop = ^S; susp = ^Z; time = 0; werase = ^W;


bjjl@lion[pts/0]<~>% wall /etc/motd                                    (0) 17:33
wall: You have write permission turned off; no reply possible

Broadcast Message from bjjl%lion.mx.plus@localhost <mailto:bjjl%lion.mx.plus@localhost>
         (/dev/pts/0) at 17:34 CEST… 

 NetBSD 10.0_BETA (GENERIC) #2: Fri Oct 13 13:34:05 CEST 2023 

bjjl@lion[pts/0]<~>% sudo /sbin/shutdown -r +100                     (126) 17:37
Shutdown at Fri Oct 13 19:17:18 2023.
shutdown: [pid 3663]
bjjl@lion[pts/0]<~>% 

 *** System shutdown message from bjjl%lion.mx.plus@localhost ***
System going down at 19:17                                                                                                                                                                                                                     


bjjl@lion[pts/0]<~>% sudo /sbin/shutdown -Dr +100                      (0) 17:38
Shutdown at Fri Oct 13 19:18:31 2023.

*** System shutdown message from bjjl%lion.mx.plus@localhost *** 
System going down at 19:18   
                                                                                                                                                                                                                                                                                                   *** System shutdown message from bjjl%lion.mx.plus@localhost *** 
System going down at 19:18                                                                                     




> On 13. Oct 2023, at 17:15, Martin Husemann <martin%duskware.de@localhost> wrote:
> 
> The following reply was made to PR bin/57656; it has been noted by GNATS.
> 
> From: Martin Husemann <martin%duskware.de@localhost>
> To: gnats-bugs%netbsd.org@localhost
> Cc: 
> Subject: Re: bin/57656: /sbin/shutdown prints message twice
> Date: Fri, 13 Oct 2023 17:12:32 +0200
> 
> So how are you loged in? What does who(1) or w(1) display?
> The problem is something on your machine, it is not easily reproducable
> here.
> 
> Martin
> 



Home | Main Index | Thread Index | Old Index