History log of /haiku/src/bin/shutdown.cpp
Revision Date Author Comments
# e18440dc 05-Jun-2019 Murai Takashi <tmurai01@gmail.com>

bin/shutdown: Fix -Wformat=

Change-Id: I03d89d576334fbf73134c79f3c6903860a0d447f
Reviewed-on: https://review.haiku-os.org/c/1513
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 91077c48 02-May-2018 Philippe Houdoin <philippe.houdoin@gmail.com>

/bin/shutdown: fixed bug, was returning non zero even on shutdown
success. Spotted by mcandre, thanks!


# fe0af420 21-Apr-2015 François Revol <revol@free.fr>

shutdown: style fix


# 06ba99b0 20-Apr-2015 François Revol <revol@free.fr>

shutdown: handle 'halt' and 'reboot' as argv[0]

In both cases ask confirmation to the user.


# c71183bc 30-Apr-2010 Axel Dörfler <axeld@pinc-software.de>

* Added the text "(Do you have ACPI enabled?)" in case -q failed.
* Minor coding style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36547 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 118828e7 11-Jan-2006 Axel Dörfler <axeld@pinc-software.de>

shutdown now defaults to returning to the caller (ie. runs asynchronously), as it
does in BeOS.
If you want it to wait until the shutdown process fails (or the system is actually
shut down), use the new "-s" option.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15923 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2fd4a041 17-Jul-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Added a boolean "synchronous" parameter to BRoster::Shutdown(). Used in the
Deskbar to initiate the shutdown process asynchronously. Couldn't test it,
because opening the Be menu doesn't work:
***PANIC: BW: Can't find view with ID: 19 !***



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13722 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a13df0dc 09-Jul-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Added a "confirm" parameter to BRoster::Shutdown() which causes the registrar
to ask the user to confirm shutting down the system.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13563 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 925d069d 03-Jul-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added BRoster::ShutDown().
* Adjusted the shutdown command to use BRoster::ShutDown(). Removed
the alert.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13416 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b8dcc94c 25-Mar-2005 Michael Lotz <mmlr@mlotz.ch>

The Haiku roster has a different signature. It still does not work, but does not fail either.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12004 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 17049c45 18-Mar-2005 Axel Dörfler <axeld@pinc-software.de>

Moved bin/ directory out of apps/.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11909 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fe0af420622e24470b3e1c5506ba36c5c2db7d62 21-Apr-2015 François Revol <revol@free.fr>

shutdown: style fix


# 06ba99b08a2abfda35519acaac0ea71d83857d4b 20-Apr-2015 François Revol <revol@free.fr>

shutdown: handle 'halt' and 'reboot' as argv[0]

In both cases ask confirmation to the user.


# c71183bc8bc19121f00ede2dbf8f8d76ba1ceabb 30-Apr-2010 Axel Dörfler <axeld@pinc-software.de>

* Added the text "(Do you have ACPI enabled?)" in case -q failed.
* Minor coding style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36547 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 118828e772e84c472e7ef4fb738f9366457a8778 11-Jan-2006 Axel Dörfler <axeld@pinc-software.de>

shutdown now defaults to returning to the caller (ie. runs asynchronously), as it
does in BeOS.
If you want it to wait until the shutdown process fails (or the system is actually
shut down), use the new "-s" option.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15923 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2fd4a0411b7a0a98d8099ef3ec8e52ee75a1d3a1 17-Jul-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Added a boolean "synchronous" parameter to BRoster::Shutdown(). Used in the
Deskbar to initiate the shutdown process asynchronously. Couldn't test it,
because opening the Be menu doesn't work:
***PANIC: BW: Can't find view with ID: 19 !***



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13722 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a13df0dc01b4f961be77fbb11ed08d177a4bae43 09-Jul-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Added a "confirm" parameter to BRoster::Shutdown() which causes the registrar
to ask the user to confirm shutting down the system.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13563 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 925d069d2345f9a7923cc3f1ff6e982a526dc844 03-Jul-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added BRoster::ShutDown().
* Adjusted the shutdown command to use BRoster::ShutDown(). Removed
the alert.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13416 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b8dcc94ceb15fa8990e39c9cf1550c11d7368238 25-Mar-2005 Michael Lotz <mmlr@mlotz.ch>

The Haiku roster has a different signature. It still does not work, but does not fail either.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12004 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 17049c451a91f427aec94b944b75876b611103e7 18-Mar-2005 Axel Dörfler <axeld@pinc-software.de>

Moved bin/ directory out of apps/.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11909 a95241bf-73f2-0310-859d-f6bbb57e9c96