I need to reboot a Linux box from a user space process. I want to have the following behavior:
- sync file systems
- not attempt to gracefully stop processes, go to runlevel 5/6, etc., for I assume things are bad and that would fail
Can those requirements be achieved together at all?
I was planning to write a 'b' into proc/sysrq-trigger. Is there a better way? (No, that won't give me sync.)
Thanks!