summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorthomas <thomas@FreeBSD.org>2002-10-06 16:24:36 +0000
committerthomas <thomas@FreeBSD.org>2002-10-06 16:24:36 +0000
commit4960ffbcf1fd20f9a7fa0a850a14f340a136b0e9 (patch)
treeccdc739a7af4e8a3884a09661eb81967d287c18d /sbin
parent1f2df657503291aadbf40ec48f3e8e237ad3c707 (diff)
downloadFreeBSD-src-4960ffbcf1fd20f9a7fa0a850a14f340a136b0e9.zip
FreeBSD-src-4960ffbcf1fd20f9a7fa0a850a14f340a136b0e9.tar.gz
Set only the RB_POWEROFF flag (not the RB_HALT flag) when
'-p' is used on the reboot(8) command line. This is intended for use when you want to attempt a power down action, but you want the system to reboot (not halt) if the power down action fails. This is typically useful when the power-off action performed by the kernel consists in signalling an uninterrupted power supply that it should shut down its inverter if mains power has not returned. The behaviour of shutdown(8) and init(8) is not modified; only the behaviour of invoking 'reboot -p' manually is modified, and then only in the case when a power-down action fails. Sounded reasonable to: phk Approved by: roberto (mentor)
Diffstat (limited to 'sbin')
-rw-r--r--sbin/reboot/reboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c
index 0c85c15..b30582d 100644
--- a/sbin/reboot/reboot.c
+++ b/sbin/reboot/reboot.c
@@ -98,7 +98,7 @@ main(int argc, char *argv[])
break;
case 'p':
pflag = 1;
- howto |= (RB_POWEROFF | RB_HALT);
+ howto |= RB_POWEROFF;
break;
case 'q':
qflag = 1;
OpenPOWER on IntegriCloud