|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
How to properly shut down OpenBSD?
Hello
what is the best way to shut down an openbsd computer? I have been doing su to get root and then shutdown -h. It doesn't fully shut down though, it mostly does but stops at "you computer has stopped. press any key to reboot.". I have to hold the power button after that to get it to actually go off. Is there an option i have to change of a different way to shut down the system? |
|
|||
See the -p option in the shutdown(8) manual page
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
||||
Quote:
But a not so long time ago, it was a different story. I think "halt -p" works directly since OpenBSD 5.6 (not really sure it was 5.6...). Before, you had to edit first /etc/rc.shutdown and change the powerdown value "powerdown=NO" in "powerdown=YES".
__________________
ThinkPad W500 P8700 6GB HD3650 - faultry ThinkStation P700 2x2620v3 32GB 1050ti 3xSSD 1xHDD |
|
|||
My user name is: open
My hostname is: r2d2 Using doas(1): Code:
# grep halt /etc/doas.conf permit nopass open as root cmd /sbin/halt args -p $ doas /sbin/halt -p Code:
# grep halt /etc/sudoers open r2d2=(root) NOPASSWD: /sbin/halt -p $ sudo halt -p |
|
|||
Thank you so much everyone, I will try it.
|
|
||||
Interestingly enough, after installing OpenBSD-6.4, shutdown -p now no longer works. hw.allowpowerdown is set to 1. It's a minor issue to me (on a multiboot laptop and not tested on multiple installs) and I suspect it's just one of those oddities.
At some point, I'll install in a few more places and see if it's just on this laptop, an old L420 Thinkpad, that also has to have acpi disbabled before it will boot. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set properly the email system | fstef | OpenBSD General | 18 | 25th February 2015 07:32 AM |
Secrets, lies and Snowden's email: why I was forced to shut down Lavabit | J65nko | News | 1 | 22nd May 2014 01:08 AM |
$dirmngr is not set properly | nihonto | NetBSD General | 2 | 20th March 2011 07:38 PM |
My keyboard is not working properly anymore in OpenBSD | newbsdied | OpenBSD General | 2 | 4th November 2010 11:20 PM |
/etc/rc.* files isn't read properly? | mathias | OpenBSD General | 4 | 1st June 2008 06:35 PM |