LinuxQuestions.org
Review your favorite Linux distribution.
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, 11:25 AM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
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, 11:59 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
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, 12:06 PM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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, 12:27 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
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, 12:44 PM   #5
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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, 01:08 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
'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, 01:35 PM   #7
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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 12:17 PM
Shutdown option phyogyi Linux - Server 1 11-30-2009 05:00 AM
No shutdown or restart option! thomasfingram Linux - Newbie 13 07-27-2005 04:35 PM
shutdown option on boot rml54321 Linux - Newbie 6 08-16-2004 02:32 AM
Mandrake Shutdown Option(s)??? Dunno_Linux Linux - Newbie 0 06-26-2003 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:42 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
Open Source Consulting | Domain Registration