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



I get 

                                                                               

Broadcast Message from bjjl%lion.mx.plus@localhost                                       

        (/dev/pts/0) at 16:45 CEST...                                          

                                                                               

Hi                                         


Just once


I had left off the -D parameter earlier, but realised, that for a "shutdown now”, this would no longer display the services shutdown info lines (about squid terminating, nginx terminating, unmounting the drives, etc.), so being “blind”. With -D, running in the foreground, I do get the additional info lines once shutdown time has arrived. But the wall(1) is displayed twice, also when using a time longer than “now”:


                                                                        

bjjl@lion[pts/0]<Documents>% sudo shutdown -Dr +30

                                                                               

*** System shutdown message from bjjl%lion.mx.plus@localhost ***                       

System going down at 17:18                                                     

                                                                               

                                                                               

Shutdown at Fri Oct 13 17:18:57 2023.

                                                                               

*** System shutdown message from bjjl%lion.mx.plus@localhost ***                       

System going down at 17:18                                                     

                                                                               

                                


On 13. Oct 2023, at 16:45, 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 16:43:02 +0200

There have been no changes to shutdown, this may depend on how you are
logged into the system (it uses wall(1) to send that message to all users).

Try:

echo Hi | wall

and see what you get displayed.

Martin




Home | Main Index | Thread Index | Old Index