Re: sysctl to prevent reboot?
- Reply: Warner Losh : "Re: sysctl to prevent reboot?"
- Reply: Konstantin Belousov : "Re: sysctl to prevent reboot?"
- In reply to: Zhenlei Huang : "Re: sysctl to prevent reboot?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 10 Jul 2025 13:51:47 UTC
On Thu, 10 Jul 2025, Zhenlei Huang wrote: Hi, > I believe Konstantin's work [1] and [2] are precisely what you need. > > [1] https://cgit.freebsd.org/src/commit/?id=7fb88c20eccc3fd2118fda2ba58d7afe2b87f7e3 <https://cgit.freebsd.org/src/commit/?id=7fb88c20eccc3fd2118fda2ba58d7afe2b87f7e3> shutdown(8): refuse to run if /var/run/noshutdown is present > [2] https://cgit.freebsd.org/src/commit/?id=384d976725a5c29734a9227fcdb6ef0807485c91 <https://cgit.freebsd.org/src/commit/?id=384d976725a5c29734a9227fcdb6ef0807485c91> rc.d: Add precious_machine rc.conf knob to create /var/run/noshutdown Thanks! I was looking in the wrong place. That doesn't catch reboot, does it? For me that's the offending command as I type that at the loader prompt (if I am in the correct window). /bz -- Bjoern A. Zeeb r15:7