see /etc/rc.shutdown and set: 

powerdown=YES   # set to YES for powerdown

Good Luck.
On Thu, Oct 16, 2008 at 11:30:02PM +1100, Mikel Lindsaar wrote:
> On Thu, Oct 16, 2008 at 11:22 PM, Gregory Edigarov
> <[EMAIL PROTECTED]> wrote:
> > Mikel Lindsaar wrote:
> >> Wondering if anyone knows how (or if it is possible) to be able to
> >> gracefully power down an OpenBSD box by hitting the power button on
> >> the server.
> > Mine does clean  shutdown on power button just from the box
> 
> Hmm... here is the dmesg then.... any ideas?
> 
> 
> 
> OpenBSD 4.3 (GENERIC) #698: Wed Mar 12 11:07:05 MDT 2008
>    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: Intel(R) Xeon(TM) CPU 3.06GHz ("GenuineIntel" 686-class) 3.07 GHz
> cpu0: 
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
> real mem  = 2147028992 (2047MB)
> avail mem = 2068054016 (1972MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 12/31/99, BIOS32 rev. 0 @
> 0xf0000, SMBIOS rev. 2.3 @ 0xec000 (42 entries)
> bios0: vendor HP version "P31" date 03/03/2005
> bios0: HP ProLiant DL360 G3
> acpi0 at bios0: rev 0
> acpi0: tables DSDT FACP APIC SPCR
> acpi0: wakeup devices
> acpitimer0 at acpi0: 3579545 Hz, 32 bits
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (PCI1)
> acpiprt2 at acpi0: bus 4 (PCI2)
> acpicpu0 at acpi0
> acpitz0 at acpi0: critical temperature 31 degC
> bios0: ROM list: 0xc0000/0x8000 0xc8000/0x4000 0xee000/0x2000!
> cpu0 at mainbus0
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "ServerWorks CNB20-HE Host (GC-LE)" rev 0x31
> pchb1 at pci0 dev 0 function 1 "ServerWorks CNB20-HE Host (GC-LE)" rev 0x00
> pchb2 at pci0 dev 0 function 2 "ServerWorks CNB20-HE Host (GC-LE)" rev 0x00
> pci1 at pchb2 bus 1
> em0 at pci1 dev 1 function 0 "Intel PRO/1000MT (82546EB)" rev 0x01:
> irq 15, address 00:04:23:c8:03:f6
> em1 at pci1 dev 1 function 1 "Intel PRO/1000MT (82546EB)" rev 0x01:
> irq 11, address 00:04:23:c8:03:f7
> bge0 at pci1 dev 2 function 0 "Broadcom BCM5703X" rev 0x02, BCM5703 A2
> (0x1002): irq 11, address 00:0b:cd:83:67:89
> brgphy0 at bge0 phy 1: BCM5703 10/100/1000baseT PHY, rev. 2
> vga1 at pci0 dev 3 function 0 "ATI Rage XL" rev 0x27
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> ciss0 at pci0 dev 4 function 0 "Compaq Smart Array 5i/532 rev.2" rev 0x01: 
> irq 3
> ciss0: 1 LD, HW rev 1, FW 2.76/2.76
> scsibus0 at ciss0: 1 targets
> sd0 at scsibus0 targ 0 lun 0: <COMPAQ, LOGICAL VOLUME, 2.76> SCSI2
> 0/direct fixed
> sd0: 34727MB, 4427 cyl, 255 head, 63 sec, 512 bytes/sec, 71122560 sec total
> "Compaq iLO" rev 0x01 at pci0 dev 5 function 0 not configured
> "Compaq iLO" rev 0x01 at pci0 dev 5 function 2 not configured
> piixpm0 at pci0 dev 15 function 0 "ServerWorks CSB5" rev 0x93: polling
> iic0 at piixpm0
> spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM registered ECC PC2300CL2.5
> spdmem1 at iic0 addr 0x52: 512MB DDR SDRAM registered ECC PC2100CL2.5
> spdmem2 at iic0 addr 0x54: 512MB DDR SDRAM registered ECC PC2100CL2.5
> spdmem3 at iic0 addr 0x56: 512MB DDR SDRAM registered ECC PC2100CL2.5
> pciide0 at pci0 dev 15 function 1 "ServerWorks CSB5 IDE" rev 0x93: DMA
> atapiscsi0 at pciide0 channel 0 drive 0
> scsibus1 at atapiscsi0: 2 targets
> cd0 at scsibus1 targ 0 lun 0: <COMPAQ, CRN-8245B, 2.19> SCSI0 5/cdrom 
> removable
> cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
> pciide0: no compatibility interrupt for use by channel 1
> ohci0 at pci0 dev 15 function 2 "ServerWorks OSB4/CSB5 USB" rev 0x05:
> irq 10, version 1.0, legacy support
> pchb3 at pci0 dev 15 function 3 "ServerWorks CSB5 LPC" rev 0x00
> pchb4 at pci0 dev 17 function 0 "ServerWorks CIOB-X2 PCIX" rev 0x05
> pchb5 at pci0 dev 17 function 2 "ServerWorks CIOB-X2 PCIX" rev 0x05
> pci2 at pchb5 bus 4
> bge1 at pci2 dev 2 function 0 "Broadcom BCM5703X" rev 0x02, BCM5703 A2
> (0x1002): irq 15, address 00:0b:cd:83:67:ab
> brgphy1 at bge1 phy 1: BCM5703 10/100/1000baseT PHY, rev. 2
> usb0 at ohci0: USB revision 1.0
> uhub0 at usb0 "ServerWorks OHCI root hub" rev 1.00/1.00 addr 1
> isa0 at mainbus0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pmsi0 at pckbc0 (aux slot)
> pckbc0: using irq 12 for aux slot
> wsmouse0 at pmsi0 mux 0
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: <PC speaker>
> spkr0 at pcppi0
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
> fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
> biomask 65ed netmask eded ttymask ffef
> mtrr: Pentium Pro MTRR support
> softraid0 at root
> root on sd0a swap on sd0b dump on sd0b
> 

-- 
Guillermo Bernaldo de Quirss Maraver Pedroche.

Reply via email to