On 2017-04-14 22:46, David C. Rankin wrote:
On 04/14/2017 12:45 PM, Carlos E. R. wrote:
Hi,
Do we have a method so that halt, reboot, suspend, hibernate operations are disabled? Requiring a secondary confirmation or removal of the inhibit?
Scenario: ssh to server. I can accidentally type the wrong command to the wrong session and thus disable the server. If I'm local restoring is easy, but not if remote.
Happened already once (I was local).
Creating a lock (an 'inhibitor') with a process on boot blocking reboot or shutdown until removed looks possible, Here is the verbiage from the 'man systemctl' regarding the '--ignore-inhibitors' option:
I thought of that, but it needs to be able to inhibit for months. Ie, ignore completely the request to reboot or whatever. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)