I am trying to write my own shutdown which is triggered on a proxy when a
power down signal is detected. We have a window between hitting the power
switch and a complete loss of power that I am trying to use to prevent
filesystem corruption. I also want to use the shutdown to recycle power when
configuration in our system changes. What I have so far is I send a
_PROC_SHUTDOWN message to proc with the signal set to SIG_PWR. I then wait a
second and send it again to simulate shutdown -f. This seems to work and
doesn’t recycle the system. What I need to know is this all that shutdown
does for a complete power down? Also, I haven’t figured out how the power
cycle is done so the system comes back up? Note that I have Proc booting
with a -b.
Kirk