Set Shutdown mode (off / halt)
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
- [X] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
- [X] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue
Is your feature request related to a problem? Please describe. Is a feature request not 100% related to problem
I'm missing the option to configure how OPNSense is shutdown. As it is now a "shutdown -op now" and I would like the option to have it not power down but halted " shutdown -oh now" This will keep console active so you could boot system by connecting serial (console) and press enter.
Describe the solution you like I would like to have a config item near the console configuration menu System -> settings -> administration (Console) to add option to select system shutdown type Power OFF (default) or Halt
I think there must be a system parameter added which defaults to "p" (poweroff) and "h" for halt and this could be source in rc.halt where the shutdown -op now is called to change to shutdown -o${OPTION} now
Describe alternatives you considered Alternative is to change the rc.halt script to have shutdown -oh now but that needs to be updated every upgrade
Additional context
It could save a engineer a data center trip to start the firewall when he/she did a power off by mistake.
This issue has been automatically timed-out (after 180 days of inactivity).
For more information about the policies for this repository, please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.
If someone wants to step up and work on this issue, just let us know, so we can reopen the issue and assign an owner to it.