Similar to shutdown(8), refuse to reboot if /var/run/noshutdown is present. The -F option can be used to force operation.
Details
- Reviewers
bapt bz kevans imp - Commits
- rG94c1c907f8c7: reboot(8): add support for noshutdown
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
This should be -F, not -f. The latter is commonly used for 'fast' elsewhere should we harmonize reboot with other systems as has oft been talked about... I don't want this feature to get in the way of that... I also think -f today means no sync.
I have 80% of the work done to implement this shift based on the last 3 threads in arch@, the forums, etc
sbin/reboot/reboot.8 | ||
---|---|---|
113 | F not f |
sbin/reboot/reboot.8 | ||
---|---|---|
121 | s/the flag/this flag/ |
reboot(8) already has -f, and I used it to add more 'enforce-ability' meaning to it. You added it, and it means ignore invalid next kernel.
sbin/reboot/reboot.8 | ||
---|---|---|
113 | I used existing -f option, adding more meaning to it. |
Well, I read the @imp response as blocking my changes for the reason that -f is reserved for something else. I replied that the flag is already used and I added an additional functionality under it.
So I want some clearance there.
I'm sorry, was going to comment and got busy after figuring things out: Yes. go ahead with this interface. There'd already be a small semantic change in -f with what I want to do. This won't make it worse.