LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   no -F option for shutdown in CentOS 6.3 (https://www.linuxquestions.org/questions/linux-server-73/no-f-option-for-shutdown-in-centos-6-3-a-4175435096/)

rjo98 11-01-2012 11:25 AM

no -F option for shutdown in CentOS 6.3
 
Hi guys. I just did a man shutdown on a new CentOS 6.3 box, and realized there is no -F option for the shutdown command. I haven't loaded a new RHEL server in a while, but the last one I did, its shutdown command still had a -F option.
Aren't they supposed to be the same for the most part, so why would there not be a -F?

unSpawn 11-01-2012 11:59 AM

Quote:

Originally Posted by rjo98 (Post 4819804)
why would there not be a -F?

IMHO a better question would be "can I fix this" or "what are the alternatives" (forcefsck GRUB arg, touch /.forcefsck).

rjo98 11-01-2012 12:06 PM

ha, ok, you got me there.

But I really am curious as to why it would not be there. Like is there a good reason, as in -F is "old school" and shouldn't be used anymore, isn't really standard to begin with, or something else perhaps.

unSpawn 11-01-2012 12:27 PM

If you really are curious then IMHO there's no better place to start than 'rpm -q --changelog $(rpm -qf /sbin/shutdown --qf="%{name}\n") | less' or the .src.rpm wrt patches against the tarball or 'rlog' the upstream source.

rjo98 11-01-2012 12:44 PM

Very cool! Did the rpm one and don't see any mention of it in the change log. the other things you said I don't exactly know what those are.

unSpawn 11-01-2012 01:08 PM

'rpm -qf /sbin/shutdown' shows you the name of the package /sbin/shutdown is part of. That package was built from a source RPM (which has a ".src.rpm" extension). If you load the source repo in Yum you should be able to 'yum --downloadonly' the .src.rpm and explode it with 'rpm2cpio' to check its contents (tarball, .spec file, patches). From reading the tarball README or spending 3 seconds with your favorite search engine you should be able to locate the upstream source, the way it announces changes (web page, mailing list, source repo, whatever else) and the source itself (http, cvs, svn, git, hg, whatever else).

rjo98 11-01-2012 01:35 PM

wow, pretty intense, i'll have to check that out.


All times are GMT -5. The time now is 04:02 AM.