09-01-2019, 08:52 PM
(09-01-2019, 11:22 AM)Tim Jones Wrote:(09-01-2019, 10:24 AM)Farley56 Wrote: My biggest beef is not knowing exactly how to shutdown/restart the device. Can anyone direct me to the documentation listing the steps to shutdown the device? Not just the NASCase but the Rock64Pro too.Hi Mark,
Shutdown takes the system down to the OFF state by running init 0, which shuts down all running processes
Reboot does just that - reboots - but uses init 6 which does the same as init 0, but with a reboot at the end
PowerOff is one step further in that it runs init 6, but then sends the ACPI command to kill power
None of these should come close to corrupting the eMMC or µSD card. If any of them do, then there's an issue with either a processes not obeying the SIGTERM and SIGKILL commands sent during the finale stages on init 0.
If you would like to see this first hand, login on a direct-connect terminal and issue the init commands are rot:
Code:init 0
init 6
HTH,
Tim
Thanks Tim. Good suggestion/explanation. I'll take a look. I'd imagine if it's a process corrupting the OMV load I'll have to spend some time looking through logs. A couple more questions;
* Can I assume that the OMV shutdown and reboot selections from the browser interface also use the same "init" code?
* Does using the Rock64Pro "reset" or "power" buttons accomplish the same thing?
* I don't want to be logged into the OMV browser interface if I wish to use the power button on the NASCase (Rock64Pro)?
* Worst thing to do is pull the AC power from the NASCase which kills everything immediately and without running any init code?
Thanks again,
Mark