LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 11-01-2012, 12:25 PM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,562

Rep: Reputation: 37
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?
 
Old 11-01-2012, 12:59 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,725
Blog Entries: 54

Rep: Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970
Quote:
Originally Posted by rjo98 View Post
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).
 
Old 11-01-2012, 01:06 PM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,562

Original Poster
Rep: Reputation: 37
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.
 
Old 11-01-2012, 01:27 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,725
Blog Entries: 54

Rep: Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970
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.
 
Old 11-01-2012, 01:44 PM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,562

Original Poster
Rep: Reputation: 37
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.
 
Old 11-01-2012, 02:08 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,725
Blog Entries: 54

Rep: Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970Reputation: 2970
'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).
 
Old 11-01-2012, 02:35 PM   #7
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,562

Original Poster
Rep: Reputation: 37
wow, pretty intense, i'll have to check that out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
option at shutdown NOT use savefile ? stu7 Puppy 9 02-17-2010 01:17 PM
Shutdown option phyogyi Linux - Server 1 11-30-2009 06:00 AM
No shutdown or restart option! thomasfingram Linux - Newbie 13 07-27-2005 05:35 PM
shutdown option on boot rml54321 Linux - Newbie 6 08-16-2004 03:32 AM
Mandrake Shutdown Option(s)??? Dunno_Linux Linux - Newbie 0 06-26-2003 11:00 AM


All times are GMT -5. The time now is 07:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration